Commit bf2b84e4a728cb33337762c331b2ef92248e711a
1 parent
9f059eca
better ctrl-alt handling, at least for SDL/X11
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1145 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
sdl.c
... | ... | @@ -492,7 +492,7 @@ static void sdl_refresh(DisplayState *ds) |
492 | 492 | } |
493 | 493 | } |
494 | 494 | } else if (ev->type == SDL_KEYUP) { |
495 | - mod_state = (SDL_GetModState() & gui_grab_code); | |
495 | + mod_state = (ev->key.keysym.mod & gui_grab_code); | |
496 | 496 | if (!mod_state) { |
497 | 497 | if (gui_key_modifier_pressed) { |
498 | 498 | if (gui_keysym == 0) { | ... | ... |