wayland: Fix enum/boolean comparison and assignment

This commit is contained in:
Frank Praznik 2025-03-09 11:55:05 -04:00
parent 597bfe6b27
commit f2866418d4
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. // Don't send redundant fullscreen set/unset events.
if (fullscreen != wind->is_fullscreen) { if (!!fullscreen != wind->is_fullscreen) {
wind->fullscreen_was_positioned = fullscreen; wind->fullscreen_was_positioned = !!fullscreen;
SetFullscreen(window, fullscreen ? output : NULL); SetFullscreen(window, fullscreen ? output : NULL);
} else if (wind->is_fullscreen) { } else if (wind->is_fullscreen) {
/* /*