From aef240b2e41650cc90b5bb8064314ad07cb9f6bb Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 4 Mar 2025 17:24:29 -0800 Subject: [PATCH] Fixed continuous logging if returning to desktop mode fails on X11 --- src/video/x11/SDL_x11events.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 02c2d905ec4a9..d619618d922ae 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -2113,6 +2113,7 @@ void X11_PumpEvents(SDL_VideoDevice *_this) SDL_LogError(SDL_LOG_CATEGORY_VIDEO, "Time out elapsed after mode switch on display %" SDL_PRIu32 " with no window becoming fullscreen; reverting", _this->displays[i]->id); SDL_SetDisplayModeForDisplay(_this->displays[i], NULL); + _this->displays[i]->internal->mode_switch_deadline_ns = 0; } } }