kill placeholder windows when the actual window appears

This commit is contained in:
Michael Stapelberg
2013-12-15 15:00:26 +01:00
parent 28a993e656
commit 42e359ec60
3 changed files with 40 additions and 0 deletions

View 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);