Avoid more errors by not trying to re-create a stack win with height == 0

This commit is contained in:
Michael Stapelberg 2010-03-06 16:51:17 +01:00
parent e9ef672c36
commit afc922ef57
1 changed files with 2 additions and 1 deletions

View File

@ -460,7 +460,8 @@ void render_container(xcb_connection_t *conn, Container *container) {
} }
/* Prepare the pixmap for usage */ /* Prepare the pixmap for usage */
cached_pixmap_prepare(conn, &(stack_win->pixmap)); if (num_clients != 1)
cached_pixmap_prepare(conn, &(stack_win->pixmap));
int current_row = 0, current_col = 0; int current_row = 0, current_col = 0;
int wrap = 0; int wrap = 0;