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

* Don't store position on minimized

* Add change file

* ?
This commit is contained in:
Tony authored and GitHub committed 2024-09-02 15:58:25 +08:00
1 parent de732d0ab0
commit 17e8014b69
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -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;