From 2e9fbecfea388ba762ffce93ceaecc6d76f9fbba Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 20 Feb 2026 22:40:50 -0600 Subject: [PATCH] Disable SDL3 raw keyboard/mouse hotplug support --- app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/main.cpp b/app/main.cpp index 277422e6..ce590de9 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -730,6 +730,10 @@ int main(int argc, char *argv[]) // incorrect objects, so we don't need additional expensive parameter checks. SDL_SetHint("SDL_INVALID_PARAM_CHECKS", "1"); + // Disable hotplug detection for SDL_GetKeyboards() and SDL_GetMice(). We don't + // use this functionality and it can cause hangs when querying broken devices. + SDL_SetHint("SDL_WINDOWS_DETECT_DEVICE_HOTPLUG", "0"); + QGuiApplication app(argc, argv); #ifdef Q_OS_UNIX