From c185cb235133c8730e9aa5f82a955b98fab1a1f3 Mon Sep 17 00:00:00 2001 From: Timo Korvola Date: Tue, 27 Mar 2018 02:19:56 +0300 Subject: [PATCH] Set SDL_HINT_IME_INTERNAL_EDITING. --- src/sdl/sf_video.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sdl/sf_video.c b/src/sdl/sf_video.c index 25d4b04..4523d26 100644 --- a/src/sdl/sf_video.c +++ b/src/sdl/sf_video.c @@ -417,6 +417,9 @@ void sf_initvideo( int W, int H, int full) if ( SDL_Init(initflags) < 0 ) { os_fatal("Couldn't initialize SDL: %s", SDL_GetError()); } + /* We don't handle text edit events. Not that I know why anyone would + want to use such an IME with Frotz. */ + SDL_SetHint(SDL_HINT_IME_INTERNAL_EDITING, "1"); CLEANREG(cleanvideo); -- 2.34.1