From: Michael Stapelberg Date: Fri, 1 Apr 2011 18:41:08 +0000 (+0200) Subject: x: skip x_draw_decoration when con is not mapped X-Git-Tag: tree-pr3~85 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=57447112babfe02a5b5abdcb602159c81744f755;p=i3%2Fi3 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. --- 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); }