Skip to content
Permalink
Browse files

Fixed bug 2526, but regressed delivering dead key presses

  • Loading branch information
slouken committed Jun 4, 2014
1 parent 4750fe7 commit 529bcf6293c35431f26d5d2cd7212471cd12fdfc
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/video/x11/SDL_x11events.c
@@ -305,12 +305,15 @@ X11_DispatchEvent(_THIS)
#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;
}

0 comments on commit 529bcf6

Please sign in to comment.