mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-18 23:50:16 +00:00
Disable text input before creating windows
This commit is contained in:
@@ -89,6 +89,11 @@ SDL_Window* StreamUtils::createTestWindow()
|
||||
SDL_Window* testWindow;
|
||||
Uint32 baseFlags = 0;
|
||||
|
||||
// Stop text input before creating the test window to avoid sdl2-compat
|
||||
// starting text input on the new window. This might trigger the IME to
|
||||
// be displayed.
|
||||
SDL_StopTextInput();
|
||||
|
||||
// Test windows are always hidden
|
||||
baseFlags |= SDL_WINDOW_HIDDEN;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user