]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
bugfix: don't set input focus if not accepted
[i3/i3] / src / manage.c
index 227e9d24552fb4c30b3f23460c6c83530f477522..202b0649fd68bbcb68f9b1b10f4f62cdf56db7d2 100644 (file)
@@ -505,7 +505,7 @@ 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) {
+    if (set_focus && !nc->window->doesnt_accept_focus) {
         DLOG("Now setting focus.\n");
         con_focus(nc);
     }