diff options
author | 2015-08-17 14:24:55 -0500 | |
---|---|---|
committer | 2015-08-17 14:24:55 -0500 | |
commit | 1781450e863ff1c9edea9f3cb79160e033812ee6 (patch) | |
tree | e78fb2bdbe46f0f6b78a528cd8a0d11d7c1d4a1b /sway | |
parent | View destroy handling clean up and clarifications (diff) | |
download | sway-1781450e863ff1c9edea9f3cb79160e033812ee6.tar.gz sway-1781450e863ff1c9edea9f3cb79160e033812ee6.tar.zst sway-1781450e863ff1c9edea9f3cb79160e033812ee6.zip |
Typo fix and more clarification
Diffstat (limited to 'sway')
-rw-r--r-- | sway/handlers.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/handlers.c b/sway/handlers.c index 4cd7d490..e17aefee 100644 --- a/sway/handlers.c +++ b/sway/handlers.c | |||
@@ -137,7 +137,7 @@ 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 | // We need to call focus_view() on focus_pointer because when unmanaged windows | 140 | // We need to call focus_view() on focus_pointer because unmanaged windows |
141 | // do not alter the focus structure of the container tree. This makes focus_pointer() | 141 | // do not alter the focus structure of the container tree. This makes focus_pointer() |
142 | // think that it doesn't need to do anything, so we manually focus the result. | 142 | // think that it doesn't need to do anything, so we manually focus the result. |
143 | focus_view(focus_pointer()); | 143 | focus_view(focus_pointer()); |
@@ -149,6 +149,9 @@ static void handle_view_destroyed(wlc_handle handle) { | |||
149 | focus_view(focus_pointer()); | 149 | focus_view(focus_pointer()); |
150 | return; | 150 | return; |
151 | } | 151 | } |
152 | |||
153 | // WLC_BIT_POPUP doesn't need to be dealt with since it's | ||
154 | // treated as a floating view. | ||
152 | } | 155 | } |
153 | 156 | ||
154 | swayc_t *view = get_swayc_for_handle(handle, &root_container); | 157 | swayc_t *view = get_swayc_for_handle(handle, &root_container); |