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:
Ingo Bürk
2015-03-29 17:29:21 +02:00
parent d689827613
commit e155447932
2 changed files with 7 additions and 3 deletions

View File

@ -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();