Skip to content
Permalink
Browse files
Fixed bug #502
XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.
  • Loading branch information
slouken committed Dec 29, 2007
1 parent bad82b5 commit 50765f3778be1c975592c21772c3b7c73360d5db
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/video/x11/SDL_x11events.c
@@ -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: {

0 comments on commit 50765f3

Please sign in to comment.