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:
parent
b644fb5f26
commit
57447112ba
2
src/x.c
2
src/x.c
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue