summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sdl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 01d9617..ee809da 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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;
}
OpenPOWER on IntegriCloud