mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-21 19:51:27 +00:00
Fix broken text input when SDL2 is using Wayland
This commit is contained in:
parent
cb0c8922e0
commit
567bff403a
1 changed files with 2 additions and 0 deletions
|
@ -150,6 +150,8 @@ namespace Priv
|
|||
{
|
||||
// Enforce minimum size limit
|
||||
SDL_SetWindowMinimumSize(Priv::window, VID_MIN_WIDTH, VID_MIN_HEIGHT);
|
||||
// Tell SDL to start sending text input on Wayland.
|
||||
if (strncasecmp(SDL_GetCurrentVideoDriver(), "wayland", 7) == 0) SDL_StartTextInput();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue