Added assignment type 'A_NO_FOCUS' (#1416)
Any assignment with type 'A_NO_FOCUS' will cause the matched window to not be focused by i3 when it is managed.
This commit is contained in:
@ -512,8 +512,10 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
|
||||
/* Defer setting focus after the 'new' event has been sent to ensure the
|
||||
* proper window event sequence. */
|
||||
if (set_focus && !nc->window->doesnt_accept_focus && nc->mapped) {
|
||||
DLOG("Now setting focus.\n");
|
||||
con_focus(nc);
|
||||
if (assignment_for(cwindow, A_NO_FOCUS) == NULL) {
|
||||
DLOG("Now setting focus.\n");
|
||||
con_focus(nc);
|
||||
}
|
||||
}
|
||||
|
||||
tree_render();
|
||||
|
Reference in New Issue
Block a user