diff options
author | Mykyta Holubakha <[email protected]> | 2016-07-11 22:27:13 +0300 |
---|---|---|
committer | Mykyta Holubakha <[email protected]> | 2016-07-15 00:22:53 +0300 |
commit | c503bf13426aa269779e81567e3b36ada56dabc1 (patch) | |
tree | 320a7d0455f6d433bbce76324ad816e29af803d4 /sway/focus.c | |
parent | a2bb2801724d9404529617f1b2b300033e2a8c8b (diff) |
Suspend destruction of wss when creating views
Diffstat (limited to 'sway/focus.c')
-rw-r--r-- | sway/focus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/focus.c b/sway/focus.c index 1d21ac35..0d9ee7e3 100644 --- a/sway/focus.c +++ b/sway/focus.c @@ -11,6 +11,7 @@ bool locked_container_focus = false; bool locked_view_focus = false; +bool suspend_workspace_cleanup = false; // switches parent focus to c. will switch it accordingly static void update_focus(swayc_t *c) { @@ -40,7 +41,7 @@ static void update_focus(swayc_t *c) { ipc_event_workspace(prev, c, "focus"); // if the old workspace has no children, destroy it - if(prev->children->length == 0 && prev->floating->length == 0){ + if(prev->children->length == 0 && prev->floating->length == 0 && !suspend_workspace_cleanup) { destroy_workspace(prev); } else { // update visibility of old workspace |