wayland: Fix enum/boolean comparison and assignment

(cherry picked from commit f2866418d4)
This commit is contained in:
Frank Praznik 2025-03-09 11:55:05 -04:00
parent 9a6f8a2512
commit fa4a9ba74e
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -2299,8 +2299,8 @@ SDL_FullscreenResult Wayland_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Win
}
// Don't send redundant fullscreen set/unset events.
if (fullscreen != wind->is_fullscreen) {
wind->fullscreen_was_positioned = fullscreen;
if (!!fullscreen != wind->is_fullscreen) {
wind->fullscreen_was_positioned = !!fullscreen;
SetFullscreen(window, fullscreen ? output : NULL);
} else if (wind->is_fullscreen) {
/*