bugfix_dont_focus_unmapped_container_on_manage.patch 458 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/8f442e0..9eee357 b/9eee357
index 8f442e0..9eee357 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -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);
     }