mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-31 04:28:56 +00:00
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:
committed by
Frank Praznik
parent
3304ec648b
commit
eba97448ae
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user