Fix broken text input when SDL2 is using Wayland

This commit is contained in:
Cacodemon345 2021-09-17 13:03:55 +06:00 committed by Rachael Alexanderson
parent cb0c8922e0
commit 567bff403a

View file

@ -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();
}
}