diff options
author | 2015-08-17 11:44:05 -0700 | |
---|---|---|
committer | 2015-08-17 11:44:05 -0700 | |
commit | 199ba05ef16fab4d1027e8db909251a3fb31e49a (patch) | |
tree | d7bc33bbff31777d8c6f57352459c62e9675a0de /sway | |
parent | Merge branch 'master' of https://github.com/SirCmpwn/sway (diff) | |
download | sway-199ba05ef16fab4d1027e8db909251a3fb31e49a.tar.gz sway-199ba05ef16fab4d1027e8db909251a3fb31e49a.tar.zst sway-199ba05ef16fab4d1027e8db909251a3fb31e49a.zip |
put back
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 6 |
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) { | |||
38 | if (pointer && focused != pointer) { | 38 | if (pointer && focused != pointer) { |
39 | unfocus_all(&root_container); | 39 | unfocus_all(&root_container); |
40 | focus_view(pointer); | 40 | focus_view(pointer); |
41 | } else if (!focused){ | 41 | } else if (!focused) { |
42 | focus_view(active_workspace); | 42 | focus_view(active_workspace); |
43 | } | 43 | } |
44 | focused = pointer; | 44 | focused = pointer; |
@@ -137,14 +137,14 @@ static void handle_view_destroyed(wlc_handle handle) { | |||
137 | wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true); | 137 | wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true); |
138 | sway_log(L_DEBUG,"Unmanaged window of type %x was destroyed", type); | 138 | sway_log(L_DEBUG,"Unmanaged window of type %x was destroyed", type); |
139 | if (type & WLC_BIT_UNMANAGED) { | 139 | if (type & WLC_BIT_UNMANAGED) { |
140 | focus_pointer(); | 140 | focus_view(focus_pointer()); |
141 | arrange_windows(active_workspace, -1, -1); | 141 | arrange_windows(active_workspace, -1, -1); |
142 | return; | 142 | return; |
143 | } | 143 | } |
144 | 144 | ||
145 | if (type & WLC_BIT_OVERRIDE_REDIRECT) { | 145 | if (type & WLC_BIT_OVERRIDE_REDIRECT) { |
146 | override_redirect = false; | 146 | override_redirect = false; |
147 | focus_pointer(); | 147 | focus_view(focus_pointer()); |
148 | return; | 148 | return; |
149 | } | 149 | } |
150 | if (type & WLC_BIT_POPUP) { | 150 | if (type & WLC_BIT_POPUP) { |