diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 2256685ff..dd062cd4f 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -494,12 +494,14 @@ printf("FocusOut!\n"); } break; +#ifdef X_HAVE_UTF8_STRING /* Some IM requires MappingNotify to be passed to XRefreshKeyboardMapping by the app. */ case MappingNotify: { XRefreshKeyboardMapping(&xevent.xmapping); } break; +#endif /* X_HAVE_UTF8_STRING */ /* Generated upon EnterWindow and FocusIn */ case KeymapNotify: {