summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-14 19:46:35 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-11-14 19:46:35 +0000
commitbf2b84e4a728cb33337762c331b2ef92248e711a (patch)
treef7745554778e08f9dfd430ffbce85480c51a26e3
parent9f059eca52670b0fb2cc4562e97358331672fc0e (diff)
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
-rw-r--r--sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdl.c b/sdl.c
index f1b4726cc..344dfae68 100644
--- a/sdl.c
+++ b/sdl.c
@@ -492,7 +492,7 @@ static void sdl_refresh(DisplayState *ds)
}
}
} else if (ev->type == SDL_KEYUP) {
- mod_state = (SDL_GetModState() & gui_grab_code);
+ mod_state = (ev->key.keysym.mod & gui_grab_code);
if (!mod_state) {
if (gui_key_modifier_pressed) {
if (gui_keysym == 0) {