mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
Focus unmanaged windows when created
This commit is contained in:
parent
06bca18a09
commit
9c3a04b996
|
@ -166,6 +166,9 @@ void add_view(wlc_handle view_handle) {
|
||||||
if ((type & WLC_BIT_OVERRIDE_REDIRECT) || (type & WLC_BIT_UNMANAGED) || (type &
|
if ((type & WLC_BIT_OVERRIDE_REDIRECT) || (type & WLC_BIT_UNMANAGED) || (type &
|
||||||
WLC_BIT_POPUP) || (type & WLC_BIT_MODAL) || (type & WLC_BIT_SPLASH)) {
|
WLC_BIT_POPUP) || (type & WLC_BIT_MODAL) || (type & WLC_BIT_SPLASH)) {
|
||||||
sway_log(L_DEBUG, "Leaving view %d:%s alone (unmanaged)", view_handle, title);
|
sway_log(L_DEBUG, "Leaving view %d:%s alone (unmanaged)", view_handle, title);
|
||||||
|
unfocus_all(&root_container);
|
||||||
|
wlc_view_set_state(view_handle, WLC_BIT_ACTIVATED, true);
|
||||||
|
wlc_view_focus(view_handle);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue