XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2007-12-29 18:50:33 +00:00
parent fc146970ff
commit d588e8c1c4

View File

@@ -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: {