From 400cb63c6aae52bd6c95f0f549d90dbb04c4288f Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Sat, 27 Sep 2025 11:05:44 -0700 Subject: [PATCH] fix(wm): ensure window restore positions get updated --- komorebi/src/window.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/komorebi/src/window.rs b/komorebi/src/window.rs index 06d6a771..91197956 100644 --- a/komorebi/src/window.rs +++ b/komorebi/src/window.rs @@ -355,9 +355,7 @@ impl Window { let rect = MacosApi::window_rect(&self.element)?; let mut window_restore_positions = WINDOW_RESTORE_POSITIONS.lock(); - if let Entry::Vacant(entry) = window_restore_positions.entry(self.id) - && CoreGraphicsApi::display_bounds_for_window_rect(rect).is_none() - { + if let Entry::Vacant(entry) = window_restore_positions.entry(self.id) { entry.insert(rect); drop(window_restore_positions); }