]> git.sur5r.net Git - i3/i3/commitdiff
x: skip x_draw_decoration when con is not mapped
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 1 Apr 2011 18:41:08 +0000 (20:41 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 1 Apr 2011 18:41:08 +0000 (20:41 +0200)
This commit makes workspace switching completely free of cache misses, so
decorations are not re-rendered when switching workspaces.

src/x.c

diff --git a/src/x.c b/src/x.c
index 8aad722a9dea317ab87075e174071faa1587da0a..995b4373249268bd5ebdbab6f4a818d408e392d0 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -581,7 +581,7 @@ static void x_push_node(Con *con) {
     TAILQ_FOREACH(current, &(con->focus_head), focused)
         x_push_node(current);
 
-    if (con->type != CT_ROOT && con->type != CT_OUTPUT)
+    if (con->type != CT_ROOT && con->type != CT_OUTPUT && con->mapped)
         x_draw_decoration(con);
 }