fix(wm): ensure window restore positions get updated

This commit is contained in:
LGUG2Z committed 2025-09-27 11:05:44 -07:00
1 parent fb416e75fd
commit 400cb63c6a
1 file changed
+1 -3
+1 -3
View File
@@ -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);
}