]> git.sur5r.net Git - i3/i3/commitdiff
fix killing placeholder windows
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 21:24:47 +0000 (22:24 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 4 Jan 2014 21:24:47 +0000 (22:24 +0100)
The only consequence of the previous situation was that there was a
misleading log message.

src/manage.c

index 8874994dfc04bde6cfdc6576ab3ebbc164ba9385..5420371885f94a4f8bfaabb0feb50341a37332c5 100644 (file)
@@ -327,7 +327,7 @@ 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 (nc->window != NULL && nc->window != cwindow) {
         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");
         }