From 50765f3778be1c975592c21772c3b7c73360d5db Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 29 Dec 2007 18:50:33 +0000 Subject: [PATCH] Fixed bug #502 XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined. --- src/video/x11/SDL_x11events.c | 2 ++ 1 file changed, 2 insertions(+) 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: {