Fixed bug #502 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 18:50:33 +0000
branchSDL-1.2
changeset 4117dbb5f9556796
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
     1.1 --- a/src/video/x11/SDL_x11events.c	Sat Dec 29 17:13:21 2007 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Sat Dec 29 18:50:33 2007 +0000
     1.3 @@ -494,12 +494,14 @@
     1.4  	    }
     1.5  	    break;
     1.6  
     1.7 +#ifdef X_HAVE_UTF8_STRING
     1.8  	    /* Some IM requires MappingNotify to be passed to
     1.9  	       XRefreshKeyboardMapping by the app.  */
    1.10  	    case MappingNotify: {
    1.11  		XRefreshKeyboardMapping(&xevent.xmapping);
    1.12  	    }
    1.13  	    break;
    1.14 +#endif /* X_HAVE_UTF8_STRING */
    1.15  
    1.16  	    /* Generated upon EnterWindow and FocusIn */
    1.17  	    case KeymapNotify: {