Skip to content

Commit

Permalink
Fixed bug 2526, but regressed delivering dead key presses
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 4, 2014
1 parent 4750fe7 commit 529bcf6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 529bcf6

Please sign in to comment.