diff options
Diffstat (limited to 'sdl.c')
-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; } |