Commit c66b0d4c authored by bellard's avatar bellard
Browse files

avoid stopping QEMU when switching desktops with Ctrl-Alt-x

git-svn-id: svn:// c046a42c-6fe2-441c-8c8c-71466251a162
parent 8785a8dd
......@@ -447,10 +447,18 @@ static void sdl_refresh(DisplayState *ds)
gui_key_modifier_pressed = 0;
if (gui_keysym == 0) {
/* exit/enter grab if pressing Ctrl-Alt */
if (!gui_grab)
if (!gui_grab) {
/* if the application is not active,
do not try to enter grab state. It
from blocking all the application
(SDL bug). */
if (SDL_GetAppState() & SDL_APPACTIVE)
} else {
/* SDL does not send back all the
modifiers key, so we must correct it */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment