]> git.sur5r.net Git - i3/i3/commitdiff
Avoid more errors by not trying to re-create a stack win with height == 0
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 6 Mar 2010 15:51:17 +0000 (16:51 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 6 Mar 2010 15:51:17 +0000 (16:51 +0100)
src/layout.c

index ddf79f8a6aeb1116303bee13926b16aac7ab4b32..267cfec9a88eed85ab288a2fc746bc3393d42a54 100644 (file)
@@ -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;