From 57447112babfe02a5b5abdcb602159c81744f755 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 1 Apr 2011 20:41:08 +0200 Subject: [PATCH] x: skip x_draw_decoration when con is not mapped This commit makes workspace switching completely free of cache misses, so decorations are not re-rendered when switching workspaces. --- src/x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x.c b/src/x.c index 8aad722a..995b4373 100644 --- 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); } -- 2.39.5