Merge pull request #716 from jengelh/grab

Revert "Grab keyboard when the game is not launched with -nomousegrab"
This commit is contained in:
Louis Gombert
2025-06-02 23:24:27 +02:00
committed by GitHub

View File

@@ -441,7 +441,6 @@ int opengl_Setup(oeApplication *app, const int *width, const int *height) {
bool grabMouse = FindArgChar("-nomousegrab", 'm') == 0;
SDL_SetWindowRelativeMouseMode(GSDLWindow, grabMouse);
SDL_SetWindowKeyboardGrab(GSDLWindow, grabMouse);
rend_SetFullScreen(Game_fullscreen);
} else if (!Game_fullscreen) {