Set SDL_HINT_IME_INTERNAL_EDITING.
authorTimo Korvola <tkorvola@iki.fi>
Mon, 26 Mar 2018 23:19:56 +0000 (02:19 +0300)
committerTimo Korvola <tkorvola@iki.fi>
Wed, 28 Mar 2018 16:40:31 +0000 (19:40 +0300)
src/sdl/sf_video.c

index 25d4b04142007a105e6ffa1dccda4b13f6673a73..4523d266b8d3245e56f6731f06c5176134313c63 100644 (file)
@@ -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);