qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/5] Revert "Handle SDL grabs failing (Mark McLoughl


From: Jan Kiszka
Subject: [Qemu-devel] [PATCH 3/5] Revert "Handle SDL grabs failing (Mark McLoughlin)"
Date: Tue, 31 Jan 2012 13:45:29 +0100

This reverts commit 6bb816031f8bc0aafc3476e6dfa4293ee3a5f106.

SDL_WM_GrabInput does not reliably bail out if grabbing is impossible.
So if we get here, we already lost and will block. But this can no
longer happen due to the check in sdl_grab_start. So this patch became
obsolete.

Conflicts:

        sdl.c

Signed-off-by: Jan Kiszka <address@hidden>
---
 ui/sdl.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/ui/sdl.c b/ui/sdl.c
index d845efb..0d3a889 100644
--- a/ui/sdl.c
+++ b/ui/sdl.c
@@ -475,12 +475,9 @@ static void sdl_grab_start(void)
             SDL_WarpMouse(guest_x, guest_y);
     } else
         sdl_hide_cursor();
-
-    if (SDL_WM_GrabInput(SDL_GRAB_ON) == SDL_GRAB_ON) {
-        gui_grab = 1;
-        sdl_update_caption();
-    } else
-        sdl_show_cursor();
+    SDL_WM_GrabInput(SDL_GRAB_ON);
+    gui_grab = 1;
+    sdl_update_caption();
 }
 
 static void sdl_grab_end(void)
-- 
1.7.3.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]