Added SDL_HINT_VIDEO_X11_EXTERNAL_WINDOW_INPUT

This commit is contained in:
Sam Lantinga
2025-03-05 08:20:00 -08:00
parent 9f557941f3
commit fe9bdcf508
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;
}