Skip to content

Commit

Permalink
Fix broken text input when SDL2 is using Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 authored and madame-rachelle committed Sep 20, 2021
1 parent cb0c892 commit 567bff4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/platform/posix/sdl/sdlglvideo.cpp
Expand Up @@ -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();
}
}

Expand Down

0 comments on commit 567bff4

Please sign in to comment.