Fix accent prompt appearing when keys are held down on macOS

This commit is contained in:
Cameron Gutman 2018-07-30 22:44:19 -07:00
parent 02242b9b34
commit 22be912788

View file

@ -647,6 +647,12 @@ void Session::exec()
SDL_SetRelativeMouseMode(SDL_TRUE); SDL_SetRelativeMouseMode(SDL_TRUE);
#endif #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 // Disable the screen saver
SDL_DisableScreenSaver(); SDL_DisableScreenSaver();