fix killing placeholder windows

The only consequence of the previous situation was that there was a
misleading log message.
This commit is contained in:
Michael Stapelberg 2014-01-04 22:24:47 +01:00
parent 18e6184f1c
commit f6ee035c61
1 changed files with 1 additions and 1 deletions

View 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); DLOG("new container = %p\n", nc);
if (nc->window != NULL) { if (nc->window != NULL && nc->window != cwindow) {
if (!restore_kill_placeholder(nc->window->id)) { 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"); DLOG("Uh?! Container without a placeholder, but with a window, has swallowed this to-be-managed window?!\n");
} }