|
|
@ -137,14 +137,14 @@ static void handle_view_destroyed(wlc_handle handle) {
|
|
|
|
wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true);
|
|
|
|
wlc_view_set_state(handle, WLC_BIT_ACTIVATED, true);
|
|
|
|
sway_log(L_DEBUG,"Unmanaged window of type %x was destroyed", type);
|
|
|
|
sway_log(L_DEBUG,"Unmanaged window of type %x was destroyed", type);
|
|
|
|
if (type & WLC_BIT_UNMANAGED) {
|
|
|
|
if (type & WLC_BIT_UNMANAGED) {
|
|
|
|
focus_pointer();
|
|
|
|
focus_view(focus_pointer());
|
|
|
|
arrange_windows(active_workspace, -1, -1);
|
|
|
|
arrange_windows(active_workspace, -1, -1);
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (type & WLC_BIT_OVERRIDE_REDIRECT) {
|
|
|
|
if (type & WLC_BIT_OVERRIDE_REDIRECT) {
|
|
|
|
override_redirect = false;
|
|
|
|
override_redirect = false;
|
|
|
|
focus_pointer();
|
|
|
|
focus_view(focus_pointer());
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (type & WLC_BIT_POPUP) {
|
|
|
|
if (type & WLC_BIT_POPUP) {
|
|
|
|