# HG changeset patch # User Sam Lantinga # Date 1198954233 0 # Node ID dbb5f9556796c6c613687e00341cf19d6c1bbacc # Parent 1bc3d3b2cde1919a26304eba40c117b8ded51daa Fixed bug #502 XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined. diff -r 1bc3d3b2cde1 -r dbb5f9556796 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Sat Dec 29 17:13:21 2007 +0000 +++ b/src/video/x11/SDL_x11events.c Sat Dec 29 18:50:33 2007 +0000 @@ -494,12 +494,14 @@ } 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: {