From 22be9127881a32807adcde461a35673c796ae134 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 30 Jul 2018 22:44:19 -0700 Subject: [PATCH] Fix accent prompt appearing when keys are held down on macOS --- app/streaming/session.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/streaming/session.cpp b/app/streaming/session.cpp index 00b27783..dd7abc34 100644 --- a/app/streaming/session.cpp +++ b/app/streaming/session.cpp @@ -647,6 +647,12 @@ void Session::exec() SDL_SetRelativeMouseMode(SDL_TRUE); #endif + // Stop text input. SDL enables it by default + // when we initialize the video subsystem, but this + // causes an IME popup when certain keys are held down + // on macOS. + SDL_StopTextInput(); + // Disable the screen saver SDL_DisableScreenSaver();