Skip to content

Commit 17e8014

Browse files
fix(window-state): saving a minimized window's state changes its position to -32000 (#1702)
* Don't store position on minimized * Add change file * ?
1 parent de732d0 commit 17e8014

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"window-state": patch
3+
---
4+
5+
Fix saving a minimized window's state changes its position to -32000

plugins/window-state/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ impl<R: Runtime> WindowExtInternal for Window<R> {
313313
}
314314
}
315315

316-
if flags.contains(StateFlags::POSITION) && !is_maximized {
316+
if flags.contains(StateFlags::POSITION) && !is_maximized && !self.is_minimized()? {
317317
let position = self.outer_position()?;
318318
state.x = position.x;
319319
state.y = position.y;

0 commit comments

Comments
 (0)