From: Michael Stapelberg Date: Thu, 11 Mar 2010 23:41:40 +0000 (+0100) Subject: bugfix: don’t remap stack windows errnously when changing workspaces X-Git-Tag: 3.e~6^2~94 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5f370b494cab934201691a770137c0452dd15221;p=i3%2Fi3 bugfix: don’t remap stack windows errnously when changing workspaces This fixes ticket #193 (long-standing rendering bug). --- diff --git a/src/workspace.c b/src/workspace.c index 59040132..7a9a959c 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -345,7 +345,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);