]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
Bugfix: don't focus unmapped container on manage
[i3/i3] / src / manage.c
index 8f442e0acfe5326812daf2b92a17fd0a883305e1..9eee35786d2c5b01c0e780577f5a7ebc4758c84c 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->mapped) {
         DLOG("Now setting focus.\n");
         con_focus(nc);
     }