]> git.corax.cc Git - mwm/commit
workspace: Don't redraw workspace if it doesn't need redrawing
authorMatthias Kruk <m@m10k.eu>
Sun, 23 May 2021 21:41:46 +0000 (06:41 +0900)
committerMatthias Kruk <m@m10k.eu>
Sun, 23 May 2021 21:41:46 +0000 (06:41 +0900)
commitaace4eca254620491dcdacf362c981c11ca1160c
tree803af4652b92ea3f14f506361a16d8987872369e
parent57b24366822f4828b4e9e5de4eefd19cb9cee518
workspace: Don't redraw workspace if it doesn't need redrawing

The mwm_redraw() function is called to redraw the clients as well as
the status bar and other indicators. The current implementation calls
monitor_redraw() and workspace_redraw() on all monitors and workspaces,
respectively, so these functions must make sure not to redraw anything
if it isn't necessary.
This commit changes the workspace_redraw() function so it does not
redraw the workspace if it was not explicitly requested.
workspace.c