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:
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)
|
||||
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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user