From eba97448ae9e69e23ba32511d0a7fe0e835b17bc Mon Sep 17 00:00:00 2001 From: svncibrahim Date: Sun, 12 Jul 2026 10:15:28 +0300 Subject: [PATCH] wayland: Fix maximized check when setting the window size The logical || made the flag mask evaluate to 1, so only fullscreen was checked and maximized windows were treated as resizable. --- src/video/wayland/SDL_waylandwindow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/wayland/SDL_waylandwindow.c b/src/video/wayland/SDL_waylandwindow.c index b630bdf975..926ac47033 100644 --- a/src/video/wayland/SDL_waylandwindow.c +++ b/src/video/wayland/SDL_waylandwindow.c @@ -3296,7 +3296,7 @@ void Wayland_SetWindowSize(SDL_VideoDevice *_this, SDL_Window *window) */ FlushPendingEvents(window); - const bool resizable_state = !(window->flags & (SDL_WINDOW_MAXIMIZED || SDL_WINDOW_FULLSCREEN)); + const bool resizable_state = !(window->flags & (SDL_WINDOW_MAXIMIZED | SDL_WINDOW_FULLSCREEN)); /* Maximized and fullscreen windows don't get resized, and the new size is ignored * if this is just to recalculate the min/max or aspect limits on a tiled window.