Skip to content

Commit

Permalink
Fixed bug #502
Browse files Browse the repository at this point in the history
XRefreshKeyboardMapping() is only available when X_HAVE_UTF8_STRING is defined.
  • Loading branch information
slouken committed Dec 29, 2007
1 parent bad82b5 commit 50765f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -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: {
Expand Down

0 comments on commit 50765f3

Please sign in to comment.