Get window state on resize, fixes #1502
This commit is contained in:
1 parent
5c5f2dbca5
commit
109330fefa
1 file changed
+5
-1
@@ -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,
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user