From d9953a4b0269eca7903c087f3f82b33f86b7f21a Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 21 Nov 2005 00:31:29 +0000 Subject: [PATCH] Don't use X11 unicode keys on anything but keypress events. --- src/video/x11/SDL_x11events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 10d6429d8..498d01989 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -833,7 +833,7 @@ SDL_keysym *X11_TranslateKey(Display *display, XIC ic, XKeyEvent *xkey, KeyCode /* 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),