Commit faa6f17f authored by Sam Lantinga's avatar Sam Lantinga

Fixed bug #502

XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402674
parent cfa0e4cb
...@@ -494,12 +494,14 @@ printf("FocusOut!\n"); ...@@ -494,12 +494,14 @@ printf("FocusOut!\n");
} }
break; break;
#ifdef X_HAVE_UTF8_STRING
/* Some IM requires MappingNotify to be passed to /* Some IM requires MappingNotify to be passed to
XRefreshKeyboardMapping by the app. */ XRefreshKeyboardMapping by the app. */
case MappingNotify: { case MappingNotify: {
XRefreshKeyboardMapping(&xevent.xmapping); XRefreshKeyboardMapping(&xevent.xmapping);
} }
break; break;
#endif /* X_HAVE_UTF8_STRING */
/* Generated upon EnterWindow and FocusIn */ /* Generated upon EnterWindow and FocusIn */
case KeymapNotify: { case KeymapNotify: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment