Get window state on resize, fixes #1502

This commit is contained in:
David Rios authored and Wez Furlong committed 2022-03-26 07:27:54 -07:00
1 parent 5c5f2dbca5
commit 109330fefa
1 file changed
+5 -1
+5 -1
View File
@@ -259,7 +259,11 @@ impl WindowInner {
window_state: if self.saved_placement.is_some() {
WindowState::FULL_SCREEN
} else {
WindowState::default()
match get_window_state(self.hwnd.0) {
SW_SHOWMAXIMIZED => WindowState::MAXIMIZED,
SW_SHOWMINIMIZED => WindowState::HIDDEN,
_ => WindowState::default(),
}
},
live_resizing: self.in_size_move,
});