Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT

(cherry picked from commit fe9bdcf508)
This commit is contained in:
Sam Lantinga
2025-03-05 08:20:00 -08:00
parent 2477f7f982
commit d75ba9c2d2
3 changed files with 27 additions and 1 deletions

View File

@@ -521,7 +521,9 @@ bool X11_CreateWindow(SDL_VideoDevice *_this, SDL_Window *window, SDL_Properties
return false;
}
SetupWindowInput(_this, window);
if (SDL_GetHintBoolean(SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT, true)) {
SetupWindowInput(_this, window);
}
return true;
}