]> git.sur5r.net Git - i3/i3/commitdiff
bugfix: don’t remap stack windows errnously when changing workspaces
authorMichael Stapelberg <michael@stapelberg.de>
Thu, 11 Mar 2010 23:41:40 +0000 (00:41 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Thu, 11 Mar 2010 23:50:31 +0000 (00:50 +0100)
This fixes ticket #193 (long-standing rendering bug).

src/workspace.c

index 774b7c41eaabeecb02fe365f0b5f8286acb9642c..d58bbaabbd6507e95b8c7253dddfa8612d1e5dd0 100644 (file)
@@ -333,7 +333,7 @@ void workspace_map_clients(xcb_connection_t *conn, Workspace *ws) {
         /* Map all stack windows, if any */
         struct Stack_Window *stack_win;
         SLIST_FOREACH(stack_win, &stack_wins, stack_windows)
-                if (stack_win->container->workspace == ws)
+                if (stack_win->container->workspace == ws && stack_win->rect.height > 0)
                         xcb_map_window(conn, stack_win->window);
 
         ignore_enter_notify_forall(conn, ws, false);