Skip to content

Commit

Permalink
Fixed continuous logging if returning to desktop mode fails on X11
Browse files Browse the repository at this point in the history
(cherry picked from commit aef240b)
  • Loading branch information
slouken committed Mar 5, 2025
1 parent 9646e3c commit cd8bffb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/x11/SDL_x11events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit cd8bffb

Please sign in to comment.