sway

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

commit 739ba902e0b05d5e891d35c19ef4d96605473571
parent b107fc6e5a467b526e7d67ef09ca3b4044ab4976
Author: Mikkel Oscar Lyderik <mikkeloscar@gmail.com>
Date:   Thu, 25 Feb 2016 11:41:42 +0100

Prevent crash when showing scratchpad on new ws.

Fix #469

Diffstat:
Msway/commands.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -672,8 +672,9 @@ static void hide_view_in_scratchpad(swayc_t *sp_view) { remove_child(sp_view); if (swayc_active_workspace() != ws && ws->floating->length == 0 && ws->children->length == 0) { destroy_workspace(ws); + } else { + arrange_windows(ws, -1, -1); } - arrange_windows(ws, -1, -1); set_focused_container(container_under_pointer()); }