Fixed bug 2526, but regressed delivering dead key presses
authorSam Lantinga <slouken@libsdl.org>
Wed, 04 Jun 2014 10:56:43 -0700
changeset 8819 728adb496260
parent 8818 3b075068bf2e
child 8820 0e935d5b193a
Fixed bug 2526, but regressed delivering dead key presses
src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c	Wed Jun 04 10:56:37 2014 -0700
+++ b/src/video/x11/SDL_x11events.c	Wed Jun 04 10:56:43 2014 -0700
@@ -305,12 +305,15 @@
 #endif
         if (orig_keycode) {
             /* Make sure dead key press/release events are sent */
+            /* Actually, don't do this because it causes double-delivery
+               of some keys on Ubuntu 14.04 (bug 2526)
             SDL_Scancode scancode = videodata->key_layout[orig_keycode];
             if (orig_event_type == KeyPress) {
                 SDL_SendKeyboardKey(SDL_PRESSED, scancode);
             } else {
                 SDL_SendKeyboardKey(SDL_RELEASED, scancode);
             }
+            */
         }
         return;
     }