]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
kill placeholder windows when the actual window appears
[i3/i3] / src / manage.c
index 0eaf35e7ecedd4e9583e4e3c156fddabb3a419b3..d7a28eb140a83a612d7a29d98b6419b61a28c3db 100644 (file)
@@ -327,6 +327,11 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
     }
 
     DLOG("new container = %p\n", nc);
+    if (nc->window != NULL) {
+        if (!restore_kill_placeholder(nc->window->id)) {
+            DLOG("Uh?! Container without a placeholder, but with a window, has swallowed this to-be-managed window?!\n");
+        }
+    }
     nc->window = cwindow;
     x_reinit(nc);