diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-16 08:34:24 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-16 08:34:24 +0200 |
commit | 180e0add685b16a916292d775b7497e8443048e7 (patch) | |
tree | dff140156c8aab13fbf64d153e270f937482dce7 | |
parent | 0d0de1248767931523c93212bbcae4e311929403 (diff) |
macOS: Retaining window position vs. zoomed
-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 | ||