From c2557728972265c738cded0666bf3e6d7547ff61 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Thu, 16 Oct 2025 10:09:30 -0700 Subject: [PATCH] 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. --- komorebi/src/reaper.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/komorebi/src/reaper.rs b/komorebi/src/reaper.rs index 4ef8723f..642f4fe9 100644 --- a/komorebi/src/reaper.rs +++ b/komorebi/src/reaper.rs @@ -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)); }