[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in fu
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode |
Date: |
Mon, 22 Aug 2011 18:42:42 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
While in full-screen mode, the input focus naturally belongs to the SDL
window. Avoid dropping it when switching from absolute to relative
mouse mode.
Signed-off-by: Jan Kiszka <address@hidden>
---
ui/sdl.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ui/sdl.c b/ui/sdl.c
index 385cc91..c7aaedf 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -491,7 +491,9 @@ static void sdl_mouse_mode_change(Notifier *notify, void
*data)
absolute_enabled = 1;
}
} else if (absolute_enabled) {
- sdl_grab_end();
+ if (!gui_fullscreen) {
+ sdl_grab_end();
+ }
absolute_enabled = 0;
}
}
--
1.7.3.4
- [Qemu-devel] [PATCH] sdl: Don't release input on mouse mode change in full-screen mode,
Jan Kiszka <=