mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-18 14:48:34 +01:00
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:
1 parent
21321fd365
commit
c255772897
1 file changed
+6
@@ -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));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user