Skip to content

Commit f286641

Browse files
committed
wayland: Fix enum/boolean comparison and assignment
1 parent 597bfe6 commit f286641

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/video/wayland/SDL_waylandwindow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,8 +2299,8 @@ SDL_FullscreenResult Wayland_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Win
22992299
}
23002300

23012301
// Don't send redundant fullscreen set/unset events.
2302-
if (fullscreen != wind->is_fullscreen) {
2303-
wind->fullscreen_was_positioned = fullscreen;
2302+
if (!!fullscreen != wind->is_fullscreen) {
2303+
wind->fullscreen_was_positioned = !!fullscreen;
23042304
SetFullscreen(window, fullscreen ? output : NULL);
23052305
} else if (wind->is_fullscreen) {
23062306
/*

0 commit comments

Comments
 (0)