fix(reaper): reap invisible "visible" windows

Another day, another stupid hack because Microsoft Office developers are
morons.
This commit is contained in:
LGUG2Z
2025-02-01 00:15:04 -08:00
parent 58d660eb16
commit 80b611890a

View File

@@ -490,7 +490,15 @@ impl Workspace {
}
for window in self.visible_windows().into_iter().flatten() {
if !window.is_window() {
if !window.is_window()
// This one is a hack because WINWORD.EXE is an absolute trainwreck of an app
// when multiple docs are open, it keeps open an invisible window, with WS_EX_LAYERED
// (A STYLE THAT THE REGULAR WINDOWS NEED IN ORDER TO BE MANAGED!) when one of the
// docs is closed
//
// I hate every single person who worked on Microsoft Office 365, especially Word
|| !window.is_visible()
{
hwnds.push(window.hwnd);
}
}