fix(wm): add generic window validity check to reaper

Calibre was being very weird and failing layout updates when a menu
button was clicked (#justcalibrethings) so I've added a final window
validity escape hatch check to the reaper for now.
This commit is contained in:
LGUG2Z committed 2025-10-16 10:09:32 -07:00
1 parent 21321fd365
commit c255772897
1 file changed
+6
+6
View File
@@ -132,6 +132,12 @@ pub fn notify_on_error(
should_reap = false;
}
// calibre does some weird stuff when pressing on the menu options which cause
// layout updates to fail, I guess we should also do a generic is_valid check here
if window.is_valid() {
should_reap = false;
}
if should_reap {
send_notification(ReaperNotification::InvalidWindow(window.id));
}