diff options
| author | bellard | 2004-04-30 00:15:15 +0200 |
|---|---|---|
| committer | bellard | 2004-04-30 00:15:15 +0200 |
| commit | 0294ffb9c848ed411c40cb0074ee5e16b7706f53 (patch) | |
| tree | bc25adbd2fefb87a94f221b0dafbcfcac8108b5c | |
| parent | SDL static config fix (Roman Zippel) (diff) | |
| download | qemu-0294ffb9c848ed411c40cb0074ee5e16b7706f53.tar.gz qemu-0294ffb9c848ed411c40cb0074ee5e16b7706f53.tar.xz qemu-0294ffb9c848ed411c40cb0074ee5e16b7706f53.zip | |
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
| -rw-r--r-- | sdl.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -301,6 +301,11 @@ static void sdl_refresh(DisplayState *ds) } } break; + case SDL_ACTIVEEVENT: + if (gui_grab && (ev->active.gain & SDL_ACTIVEEVENTMASK) == 0) { + sdl_grab_end(); + } + break; default: break; } |
