mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 08:00:27 +00:00
Disable text input before creating windows
This commit is contained in:
@@ -632,6 +632,12 @@ bool Session::initialize(QQuickWindow* qtWindow)
|
||||
return false;
|
||||
}
|
||||
|
||||
// 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();
|
||||
|
||||
LiInitializeStreamConfiguration(&m_StreamConfig);
|
||||
m_StreamConfig.width = m_Preferences->width;
|
||||
m_StreamConfig.height = m_Preferences->height;
|
||||
@@ -1907,12 +1913,6 @@ void Session::exec()
|
||||
}
|
||||
}
|
||||
|
||||
// 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 if requested
|
||||
if (m_Preferences->keepAwake) {
|
||||
SDL_DisableScreenSaver();
|
||||
|
||||
Reference in New Issue
Block a user