diff options
author | Drew DeVault <[email protected]> | 2015-08-25 16:39:16 -0400 |
---|---|---|
committer | Drew DeVault <[email protected]> | 2015-08-25 16:39:16 -0400 |
commit | 77dcf70a9b9037f7582718c37b4dff04324d8c7a (patch) | |
tree | 3099d9e4b4f1b2491bfc0e93d9976e4e8161fd89 /sway/handlers.c | |
parent | 0bf380a0b1a83f49e2e33066ab6504d308dcec89 (diff) | |
parent | 225c2fbe5b9219fd848c2d6d11cadef9ef1b42f0 (diff) |
Merge pull request #132 from taiyu-len/master
fixed segfault on exit + a little fixup of that floatfocus pr
Diffstat (limited to 'sway/handlers.c')
-rw-r--r-- | sway/handlers.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 4d1dc56c..758af8d6 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -231,14 +231,7 @@ static void handle_view_destroyed(wlc_handle handle) { break; } - swayc_t *focused_view = get_focused_view(&root_container); - if (focused_view->type == C_WORKSPACE && focused_view->children->length == 0) { - if (focused_view->floating->length > 0) { - focused_view = focused_view->floating->items[focused_view->floating->length-1]; - focused_view = get_focused_view(focused_view); - } - } - set_focused_container(focused_view); + set_focused_container(get_focused_view(&root_container)); } static void handle_view_focus(wlc_handle view, bool focus) { |