x: Don’t pre-render the decoration for windows inside a stack which are not visible
Saves n-1 decoration renderings for n windows in a stack whenever a new window gets added or removed.
This commit is contained in:
parent
d7f9700ba4
commit
7d9ba707b3
5
src/x.c
5
src/x.c
|
@ -578,6 +578,11 @@ void x_push_node(Con *con) {
|
|||
|
||||
con->pixmap_recreated = true;
|
||||
|
||||
/* Don’t render the decoration for windows inside a stack which are
|
||||
* not visible right now */
|
||||
if (!con->parent ||
|
||||
con->parent->layout != L_STACKED ||
|
||||
TAILQ_FIRST(&(con->parent->focus_head)) == con)
|
||||
/* Render the decoration now to make the correct decoration visible
|
||||
* from the very first moment. Later calls will be cached, so this
|
||||
* doesn’t hurt performance. */
|
||||
|
|
Loading…
Reference in New Issue