diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-25 11:41:42 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-02-25 11:43:07 +0100 |
commit | 739ba902e0b05d5e891d35c19ef4d96605473571 (patch) | |
tree | d0a1bdd6295f2029ed1ea934f52eca7bb42095d7 | |
parent | Fix ipc event bit masks (diff) | |
download | sway-739ba902e0b05d5e891d35c19ef4d96605473571.tar.gz sway-739ba902e0b05d5e891d35c19ef4d96605473571.tar.zst sway-739ba902e0b05d5e891d35c19ef4d96605473571.zip |
Prevent crash when showing scratchpad on new ws.
Fix #469
-rw-r--r-- | sway/commands.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 1467a044..055473d5 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -672,8 +672,9 @@ static void hide_view_in_scratchpad(swayc_t *sp_view) { | |||
672 | remove_child(sp_view); | 672 | remove_child(sp_view); |
673 | if (swayc_active_workspace() != ws && ws->floating->length == 0 && ws->children->length == 0) { | 673 | if (swayc_active_workspace() != ws && ws->floating->length == 0 && ws->children->length == 0) { |
674 | destroy_workspace(ws); | 674 | destroy_workspace(ws); |
675 | } else { | ||
676 | arrange_windows(ws, -1, -1); | ||
675 | } | 677 | } |
676 | arrange_windows(ws, -1, -1); | ||
677 | set_focused_container(container_under_pointer()); | 678 | set_focused_container(container_under_pointer()); |
678 | } | 679 | } |
679 | 680 | ||