diff src/video/x11/SDL_x11events.c @ 4117:dbb5f9556796 SDL-1.2

Fixed bug #502 XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 18:50:33 +0000
parents ca992789c798
children 568c9b3c0167
line wrap: on
line diff
--- 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: {