fix(window-state): saving a minimized window's state changes its position to -32000 (#1702)

* Don't store position on minimized

* Add change file

* ?
pull/1650/head
Tony 9 months ago committed by GitHub
parent de732d0ab0
commit 17e8014b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"window-state": patch
---
Fix saving a minimized window's state changes its position to -32000

@ -313,7 +313,7 @@ impl<R: Runtime> WindowExtInternal for Window<R> {
}
}
if flags.contains(StateFlags::POSITION) && !is_maximized {
if flags.contains(StateFlags::POSITION) && !is_maximized && !self.is_minimized()? {
let position = self.outer_position()?;
state.x = position.x;
state.y = position.y;

Loading…
Cancel
Save