Commit 0294ffb9c848ed411c40cb0074ee5e16b7706f53

Authored by bellard
1 parent d8d8aa4e

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
Showing 1 changed file with 5 additions and 0 deletions
... ... @@ -301,6 +301,11 @@ static void sdl_refresh(DisplayState *ds)
301 301 }
302 302 }
303 303 break;
  304 + case SDL_ACTIVEEVENT:
  305 + if (gui_grab && (ev->active.gain & SDL_ACTIVEEVENTMASK) == 0) {
  306 + sdl_grab_end();
  307 + }
  308 + break;
304 309 default:
305 310 break;
306 311 }
... ...