From 1781450e863ff1c9edea9f3cb79160e033812ee6 Mon Sep 17 00:00:00 2001 From: Luminarys Date: Mon, 17 Aug 2015 14:24:55 -0500 Subject: Typo fix and more clarification --- sway/handlers.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sway') 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) { 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) { - // We need to call focus_view() on focus_pointer because when unmanaged windows + // We need to call focus_view() on focus_pointer because unmanaged windows // do not alter the focus structure of the container tree. This makes focus_pointer() // think that it doesn't need to do anything, so we manually focus the result. focus_view(focus_pointer()); @@ -149,6 +149,9 @@ static void handle_view_destroyed(wlc_handle handle) { focus_view(focus_pointer()); return; } + + // WLC_BIT_POPUP doesn't need to be dealt with since it's + // treated as a floating view. } swayc_t *view = get_swayc_for_handle(handle, &root_container); -- cgit v1.2.3