changeset 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 1bc3d3b2cde1
children 3c068a8c016f
files src/video/x11/SDL_x11events.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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: {