SDL: cocoa: Check the resizable flag along with zoomed status when resizing

From bddbd1e31748e695a4010001cb91dbeac683c89b Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Tue, 12 Dec 2023 14:31:41 -0500
Subject: [PATCH] cocoa: Check the resizable flag along with zoomed status when
 resizing

isZoomed always returns true if the window is not resizable, so the resizable flag needs to be checked as well.
---
 src/video/cocoa/SDL_cocoawindow.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index 7c49a69de0f2..9115e65fd7b0 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -2209,7 +2209,8 @@ void Cocoa_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window)
             Cocoa_SyncWindow(_this, window);
         }
 
-        if (!Cocoa_IsZoomed(window)) {
+        /* isZoomed always returns true if the window is not resizable */
+        if (!Cocoa_IsZoomed(window) || !(window->flags & SDL_WINDOW_RESIZABLE)) {
             if (!(window->flags & SDL_WINDOW_FULLSCREEN)) {
                 [nswindow setFrame:[nswindow frameRectForContentRect:rect] display:YES];
                 ScheduleContextUpdates(windata);