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.
This commit is contained in:
svncibrahim
2026-07-12 10:15:28 +03:00
committed by Frank Praznik
parent 3304ec648b
commit eba97448ae

View File

@@ -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.