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
This commit is contained in:
bellard 2004-11-14 19:46:35 +00:00
parent 9f059eca52
commit bf2b84e4a7

2
sdl.c
View File

@ -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) {