aboutsummaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authortaiyu <taiyu.len@gmail.com>2015-08-17 11:44:05 -0700
committertaiyu <taiyu.len@gmail.com>2015-08-17 11:44:05 -0700
commit199ba05ef16fab4d1027e8db909251a3fb31e49a (patch)
treed7bc33bbff31777d8c6f57352459c62e9675a0de /sway
parent0eed6a4f9930024132807a0f66e58c526d2aea4d (diff)
put back
Diffstat (limited to 'sway')
-rw-r--r--sway/handlers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 78ca7438..5c673697 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -38,7 +38,7 @@ swayc_t *focus_pointer(void) {
if (pointer && focused != pointer) {
unfocus_all(&root_container);
focus_view(pointer);
- } else if (!focused){
+ } else if (!focused) {
focus_view(active_workspace);
}
focused = pointer;
@@ -137,14 +137,14 @@ static void handle_view_destroyed(wlc_handle handle) {
wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true);
sway_log(L_DEBUG,"Unmanaged window of type %x was destroyed", type);
if (type & WLC_BIT_UNMANAGED) {
- focus_pointer();
+ focus_view(focus_pointer());
arrange_windows(active_workspace, -1, -1);
return;
}
if (type & WLC_BIT_OVERRIDE_REDIRECT) {
override_redirect = false;
- focus_pointer();
+ focus_view(focus_pointer());
return;
}
if (type & WLC_BIT_POPUP) {