]> git.corax.cc Git - mwm/commit
monitor: Don't XMapRaise() statusbar every time it is redrawn
authorMatthias Kruk <m@m10k.eu>
Thu, 10 Jun 2021 00:17:46 +0000 (09:17 +0900)
committerMatthias Kruk <m@m10k.eu>
Thu, 10 Jun 2021 00:17:46 +0000 (09:17 +0900)
commitd96be74fae6d6e0dd5bc718fc0f5d3eafb272c94
treeed047a8a7a10abc0d20278ca7e5a5ff22cc5bafb
parent47ed1dd9a27e059610e4b287550e73a2c1569826
monitor: Don't XMapRaise() statusbar every time it is redrawn

The statusbar is mapped raised everytime it is redrawn, even if it is
obscured by another window. If the other window is not tiled (that is,
its position and size are not controlled by mwm), it will try to bring
itself back to the front, and the two windows end up competing to be
on top of the stack.
This commit makes sure the statusbar is mapped only once, when it is
initialized. Since statusbars are never unmapped, there is no need to
map them every time they are redrawn.
monitor.c