# HG changeset patch # User Ryan C. Gordon # Date 1132533089 0 # Node ID abb4267e70287276d7159293a29c86e3fc9b78f6 # Parent 9867f3d86e441b55b30e65401dcc60821e85d141 Don't use X11 unicode keys on anything but keypress events. diff -r 9867f3d86e44 -r abb4267e7028 src/video/x11/SDL_x11events.c --- a/src/video/x11/SDL_x11events.c Mon Nov 21 00:16:34 2005 +0000 +++ b/src/video/x11/SDL_x11events.c Mon Nov 21 00:31:29 2005 +0000 @@ -833,7 +833,7 @@ /* Look up the translated value for the key event */ /* if there is no connection with the IM server, use the regular method */ - if (ic == NULL) { + if (ic == NULL || xkey->type != KeyPress) { unsigned char keybuf[32]; if ( pXLookupString(xkey, (char *)keybuf, sizeof(keybuf),