[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 07/15] sdl: Drop bogus gui_fullscreen_initial_grab
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 07/15] sdl: Drop bogus gui_fullscreen_initial_grab |
Date: |
Sat, 30 Jul 2011 11:39:10 +0200 |
From: Jan Kiszka <address@hidden>
There must be no difference between initial -full-screen and switching
to this mode via the hot key.
Signed-off-by: Jan Kiszka <address@hidden>
---
ui/sdl.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/ui/sdl.c b/ui/sdl.c
index e18c59a..80bf776 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();
}
}
--
1.7.3.4
- [Qemu-devel] [PATCH 00/15] sdl: Usability improvements, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 10/15] sdl: Never release input while in full screen mode, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 04/15] sdl: Properly mark modifier+u as hotkey, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 07/15] sdl: Drop bogus gui_fullscreen_initial_grab,
Jan Kiszka <=
- [Qemu-devel] [PATCH 06/15] sdl: Restore scaling mode on return from full screen, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 09/15] sdl: Consistently avoid grabbing input for text consoles, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 13/15] sdl: Add zoom hot keys, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 15/15] sdl: Refactor sdl_send_mouse_event, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 14/15] sdl: Factor out event handlers from sdl_refresh, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 05/15] sdl: Fix full screen toggling from scaled mode, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 01/15] sdl: Fix termination in -no-shutdown mode, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 08/15] sdl: Initialize gui_fullscreen earlier during setup, Jan Kiszka, 2011/07/30
- [Qemu-devel] [PATCH 03/15] sdl: Avoid redundant scaling deactivation, Jan Kiszka, 2011/07/30