Fixed bug #502 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 18:50:33 +0000
branchSDL-1.2
changeset 4117 dbb5f9556796
parent 4116 1bc3d3b2cde1
child 4118 3c068a8c016f
Fixed bug #502 XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.
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: {