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

[Xen-changelog] [xen-unstable] [HVM][QEMU] Fix SDL mouse "invisible wall".



# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 161473836da3ccf922f44e910f8b5c01c709d1e6
# Parent  ee482dc60eab7ba59c39901a5e6d9e597acc2f52
[HVM][QEMU] Fix SDL mouse "invisible wall".
Signed-off-by: Anthony Liguori <aliguori@xxxxxxxxxx>
Signed-off-by: Don Dugger <donald.d.dugger@xxxxxxxxx>
---
 tools/ioemu/sdl.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff -r ee482dc60eab -r 161473836da3 tools/ioemu/sdl.c
--- a/tools/ioemu/sdl.c Wed Jun 14 17:06:28 2006 +0100
+++ b/tools/ioemu/sdl.c Wed Jun 14 22:15:13 2006 +0100
@@ -376,13 +376,18 @@ static void sdl_update_caption(void)
 
 static void sdl_hide_cursor(void)
 {
-    SDL_SetCursor(sdl_cursor_hidden);
+    if (kbd_mouse_is_absolute()) {
+       SDL_ShowCursor(1);
+       SDL_SetCursor(sdl_cursor_hidden);
+    } else {
+       SDL_ShowCursor(0);
+    }
 }
 
 static void sdl_show_cursor(void)
 {
     if (!kbd_mouse_is_absolute()) {
-       SDL_SetCursor(sdl_cursor_normal);
+       SDL_ShowCursor(1);
     }
 }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.