diff options
author | Drew DeVault <ddevault@linode.com> | 2015-08-10 13:43:09 -0400 |
---|---|---|
committer | Drew DeVault <ddevault@linode.com> | 2015-08-10 13:43:09 -0400 |
commit | 9c3a04b996649c0c578410e02181d8808b13c646 (patch) | |
tree | 8653f96aed4d973dd4ced5f865673336fc4cb270 /sway/layout.c | |
parent | 06bca18a09d102aeed07284a4155909f6b75d896 (diff) |
Focus unmanaged windows when created
Diffstat (limited to 'sway/layout.c')
-rw-r--r-- | sway/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/layout.c b/sway/layout.c index d7806ee5..4b156add 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -166,6 +166,9 @@ void add_view(wlc_handle view_handle) { if ((type & WLC_BIT_OVERRIDE_REDIRECT) || (type & WLC_BIT_UNMANAGED) || (type & WLC_BIT_POPUP) || (type & WLC_BIT_MODAL) || (type & WLC_BIT_SPLASH)) { 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; } |