[Bug 103226] New: Spice stops processing mouse input when in relative mode

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 11 16:51:21 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103226

            Bug ID: 103226
           Summary: Spice stops processing mouse input when in relative
                    mode
           Product: Spice
           Version: unspecified
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: blocker
          Priority: medium
         Component: server
          Assignee: spice-bugs at lists.freedesktop.org
          Reporter: geoff at hostfission.com

I am writing a spice client from scratch that only connects to the main and
input channels for sending mouse and keyboard events.

I have discovered two issues with spice/qemu and a Windows 10 guest.

1) If the tablet and mouse are attached and SPICE_MOUSE_MODE_SERVER is in use,
sending SPICE_MSGC_INPUTS_MOUSE_PRESS performs it at the location of the tablet
rather then the location of the cursor, causing the cursor to jump back to it's
original location.

2) If SPICE_MOUSE_MODE_CLIENT is in use, applications that need relative input
event's do not work properly, first person games for example only allow a 180
degree turn due to the cursor hitting the x/y bounds.

After removing the tablet and setting to SPICE_MOUSE_MODE_SERVER both 1 & 2 are
worked around, but this exposes what looks like a more major bug in Spice or
qemu, I am not sure where the fault lies.

3) With SPICE_MOUSE_MODE_SERVER, only a generic mouse attached, if the mouse is
moved around and SPICE_MSGC_INPUTS_KEY_DOWN/UP messages are sent, the guest
cursor quickly stops responding and never recovers.

It seems spice-server continues to perform properly as it continues to send
SPICE_MSG_INPUTS_MOUSE_MOTION_ACK every 4 mouse messages, and keyboard events
continue to function properly. This indicates it is not a problem with my
client, but a failure between spice-server and qemu.

I will continue to dig into qemu/spice to try to discover what is broken here,
but it would be great if someone with more experience with spice could have a
look too.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20171011/9b4a0459/attachment.html>


More information about the spice-bugs mailing list