Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
window_manager: fix dangling empty window bug
Previously, some program might unmap their window(s) but didn't destory them, leaving some empty windows in the workspace. Example: 1. KDE's systemsettings5 -> Font -> Font selection window 2. WPS office sign in window Some empty windows can't even be closed, so initially I simply use XDestroyWindow to brutally close them, and I broke my entire KDE config, lots of GUI applications segfaults. A safer way I came up with is to send an X Event with WM_DELETE to close a window, call XSync (to make sure the event we just sent has been processed) and then call XDestroyWindow to make sure this danling bitch is really closed.
- Loading branch information
Previously I wrote
XDestoryWindow(c->window())
here, and tested it on KDE's systemsettings5's font selection window, and then I broke my entire KDE config. Lots of GUI application segfaults, even my god damn urxvt segfaults.PS: Just ignore this line, it makes no sense.