mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-17 22:33:12 +01:00
fix(wm): ensure window restore positions get updated
This commit is contained in:
1 parent
fb416e75fd
commit
400cb63c6a
1 file changed
+1
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user