]> git.corax.cc Git - mwm/commit
mwm: Handle as many events as possible before redrawing
authorMatthias Kruk <m@m10k.eu>
Fri, 21 May 2021 22:47:24 +0000 (07:47 +0900)
committerMatthias Kruk <m@m10k.eu>
Fri, 21 May 2021 22:47:24 +0000 (07:47 +0900)
commit7b3b4a634454a95713417a35c428a4d3185ebf21
tree4cd7bb05f2cf747f080435ac8f7ee20f8eda33e8
parent6d10a98bd71cbb88bc5063bb5eee6e6db2749d61
mwm: Handle as many events as possible before redrawing

The current implementation redraws the monitors (where necessary) after
each handled event. This leads to problems when an application destroys
or unmaps multiple windows in one go, because mwm will attempt to redraw
the destroyed windows for which it hasn't processed the destroy/unmap
event yet.
This commit changes the mwm_run() function to handle all queued events
before redrawing anything.
mwm.c