]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Render decoration of single window in tabbed/stacked container (Thanks Fernando)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Jul 2010 20:23:05 +0000 (22:23 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 11 Jul 2010 20:23:32 +0000 (22:23 +0200)
src/layout.c

index b13380403731f3a3ebdb4ce54e51eee9ba3bc85d..76343aa008001e62f70d544d0d5d065ec139c22e 100644 (file)
@@ -536,10 +536,11 @@ void render_container(xcb_connection_t *conn, Container *container) {
                                 }
                                 offset_x = current_client++ * size_each;
                         }
-                        if (stack_win->pixmap.id == XCB_NONE)
-                                continue;
-                        decorate_window(conn, client, stack_win->pixmap.id,
-                                        stack_win->pixmap.gc, offset_x, offset_y);
+                        if (stack_win->pixmap.id != XCB_NONE)
+                                decorate_window(conn, client, stack_win->pixmap.id,
+                                                stack_win->pixmap.gc, offset_x, offset_y);
+                        else
+                                decorate_window(conn, client, client->frame, client->titlegc, 0, 0);
                 }
 
                 /* Check if we need to fill one column because of an uneven