From: Andrzej Zaborowski <balrogg@gmail.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [6477] Allow usb tablet to be used with vmware-vga hwcursor.
Date: Thu, 29 Jan 2009 23:29:52 +0000 [thread overview]
Message-ID: <E1LSgKW-0000GZ-Ti@cvs.savannah.gnu.org> (raw)
Revision: 6477
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6477
Author: balrog
Date: 2009-01-29 23:29:52 +0000 (Thu, 29 Jan 2009)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/sdl.c
Modified: trunk/sdl.c
===================================================================
--- trunk/sdl.c 2009-01-29 23:19:20 UTC (rev 6476)
+++ trunk/sdl.c 2009-01-29 23:29:52 UTC (rev 6477)
@@ -278,7 +278,8 @@
{
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 @@
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();
reply other threads:[~2009-01-29 23:29 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LSgKW-0000GZ-Ti@cvs.savannah.gnu.org \
--to=balrogg@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).