summaryrefslogtreecommitdiff
path: root/sdl.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-29 23:29:52 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2009-01-29 23:29:52 +0000
commit08a2d4c4ffde60e48819449f461274c43ad6e2d3 (patch)
treec91148f66b96d7bdcde33650347ca8c5ad652eea /sdl.c
parent8bf66d402b9ccf74ad2785177ac5d4801ce749c2 (diff)
downloadqemu-08a2d4c4ffde60e48819449f461274c43ad6e2d3.tar.gz
Allow usb tablet to be used with vmware-vga hwcursor.
Assume that in absolute mode the guest cursor always follows host cursor and there's no need to move host cursor. This avoids a strange feedback loop. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6477 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'sdl.c')
-rw-r--r--sdl.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sdl.c b/sdl.c
index aecdf638ea..cfdf852373 100644
--- a/sdl.c
+++ b/sdl.c
@@ -278,7 +278,8 @@ static void sdl_grab_start(void)
{
if (guest_cursor) {
SDL_SetCursor(guest_sprite);
- SDL_WarpMouse(guest_x, guest_y);
+ if (!kbd_mouse_is_absolute() && !absolute_enabled)
+ SDL_WarpMouse(guest_x, guest_y);
} else
sdl_hide_cursor();
@@ -549,7 +550,8 @@ static void sdl_mouse_warp(int x, int y, int on)
sdl_show_cursor();
if (gui_grab || kbd_mouse_is_absolute() || absolute_enabled) {
SDL_SetCursor(guest_sprite);
- SDL_WarpMouse(x, y);
+ if (!kbd_mouse_is_absolute() && !absolute_enabled)
+ SDL_WarpMouse(x, y);
}
} else if (gui_grab)
sdl_hide_cursor();