summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-07-30 11:39:10 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-05 10:57:35 -0500
commit982aae66ff75dced49990d7cce8dc0be31aff7e1 (patch)
treeb22cee038178ce5e0e5084e749aff8e23e4c1eeb /ui
parentf9977897eee2ed5e28e758b9e21cb4f64a260842 (diff)
downloadqemu-982aae66ff75dced49990d7cce8dc0be31aff7e1.tar.gz
qemu-982aae66ff75dced49990d7cce8dc0be31aff7e1.tar.bz2
qemu-982aae66ff75dced49990d7cce8dc0be31aff7e1.zip
sdl: Drop bogus gui_fullscreen_initial_grab
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>
Diffstat (limited to 'ui')
-rw-r--r--ui/sdl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ui/sdl.c b/ui/sdl.c
index e18c59ac4e..80bf776104 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -47,7 +47,6 @@ static int gui_fullscreen;
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;
@@ -751,7 +750,7 @@ static void sdl_refresh(DisplayState *ds)
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) {
@@ -923,7 +922,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
atexit(sdl_cleanup);
if (full_screen) {
gui_fullscreen = 1;
- gui_fullscreen_initial_grab = 1;
sdl_grab_start();
}
}