From afc922ef57fd347e79f8c713057fe01c2fbd09ed Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sat, 6 Mar 2010 16:51:17 +0100 Subject: [PATCH] Avoid more errors by not trying to re-create a stack win with height == 0 --- src/layout.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/layout.c b/src/layout.c index ddf79f8a..267cfec9 100644 --- a/src/layout.c +++ b/src/layout.c @@ -460,7 +460,8 @@ void render_container(xcb_connection_t *conn, Container *container) { } /* 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 wrap = 0;