diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/window.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index d6a41d3b..cd813acb 100644 --- a/src/ui/window.c +++ b/src/ui/window.c | |||
@@ -1028,7 +1028,14 @@ static void invalidate_Window_(iWindow *d) { | |||
1028 | } | 1028 | } |
1029 | 1029 | ||
1030 | static iBool isNormalPlacement_Window_(const iWindow *d) { | 1030 | static iBool isNormalPlacement_Window_(const iWindow *d) { |
1031 | if (snap_Window(d) || d->isDrawFrozen) return iFalse; | 1031 | if (d->isDrawFrozen) return iFalse; |
1032 | #if defined (iPlatformApple) | ||
1033 | /* Maximized mode is not special on macOS. */ | ||
1034 | if (snap_Window(d) == maximized_WindowSnap) { | ||
1035 | return iTrue; | ||
1036 | } | ||
1037 | #endif | ||
1038 | if (snap_Window(d)) return iFalse; | ||
1032 | return !(SDL_GetWindowFlags(d->win) & SDL_WINDOW_MINIMIZED); | 1039 | return !(SDL_GetWindowFlags(d->win) & SDL_WINDOW_MINIMIZED); |
1033 | } | 1040 | } |
1034 | 1041 | ||