There must be no difference between initial -full-screen and switching
to this mode via the hot key.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
static int gui_noframe;
static int gui_key_modifier_pressed;
static int gui_keysym;
-static int gui_fullscreen_initial_grab;
static int gui_grab_code = KMOD_LALT | KMOD_LCTRL;
static uint8_t modifiers_state[256];
static int width, height;
break;
case SDL_ACTIVEEVENT:
if (gui_grab && ev->active.state == SDL_APPINPUTFOCUS &&
- !ev->active.gain && !gui_fullscreen_initial_grab) {
+ !ev->active.gain && !gui_fullscreen) {
sdl_grab_end();
}
if (ev->active.state & SDL_APPACTIVE) {
atexit(sdl_cleanup);
if (full_screen) {
gui_fullscreen = 1;
- gui_fullscreen_initial_grab = 1;
sdl_grab_start();
}
}