Bugfix: Correctly unmap stack windows and don’t re-map them too early

This commit is contained in:
Michael Stapelberg
2009-08-06 00:37:39 +02:00
parent 35d811db82
commit 20875494ee
3 changed files with 6 additions and 2 deletions

View File

@ -334,7 +334,7 @@ void render_container(xcb_connection_t *conn, Container *container) {
/* Check if we need to remap our stack title window, it gets unmapped when the container
is empty in src/handlers.c:unmap_notify() */
if (stack_win->rect.height == 0)
if (stack_win->rect.height == 0 && num_clients > 0)
xcb_map_window(conn, stack_win->window);
/* Check if we need to reconfigure our stack title window */