sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 8b6bd106aa92192e9e2aa6781e9b2e51f1e22fe2
parent 19df2e590602abe0b5e1b53bc11debdb37be3fbe
Author: emersion <contact@emersion.fr>
Date:   Wed,  6 Mar 2019 10:47:50 +0100

Fix container_parent_layout for scratchpad windows

Diffstat:
Msway/tree/container.c | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/sway/tree/container.c b/sway/tree/container.c @@ -1163,7 +1163,10 @@ enum sway_container_layout container_parent_layout(struct sway_container *con) { if (con->parent) { return con->parent->layout; } - return con->workspace->layout; + if (con->workspace) { + return con->workspace->layout; + } + return L_NONE; } enum sway_container_layout container_current_parent_layout(