mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 12:23:53 -06:00
disable grab if the window no longer has the focus (Windows case) (Mike Nordell)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@777 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
d8d8aa4e2c
commit
0294ffb9c8
1 changed files with 5 additions and 0 deletions
5
sdl.c
5
sdl.c
|
@ -301,6 +301,11 @@ static void sdl_refresh(DisplayState *ds)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case SDL_ACTIVEEVENT:
|
||||||
|
if (gui_grab && (ev->active.gain & SDL_ACTIVEEVENTMASK) == 0) {
|
||||||
|
sdl_grab_end();
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue