mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Fixed bug #502
XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined. --HG-- branch : SDL-1.2
This commit is contained in:
@@ -494,12 +494,14 @@ printf("FocusOut!\n");
|
||||
}
|
||||
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: {
|
||||
|
||||
Reference in New Issue
Block a user