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.
This commit is contained in:
Michael Stapelberg 2011-04-01 20:41:08 +02:00
parent b644fb5f26
commit 57447112ba
1 changed files with 1 additions and 1 deletions

View File

@ -581,7 +581,7 @@ static void x_push_node(Con *con) {
TAILQ_FOREACH(current, &(con->focus_head), focused) TAILQ_FOREACH(current, &(con->focus_head), focused)
x_push_node(current); 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); x_draw_decoration(con);
} }