]> git.proxmox.com Git - qemu.git/commit
vmmouse: adapt to mouse handler changes.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 8 Oct 2010 10:30:13 +0000 (12:30 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 20 Oct 2010 17:10:59 +0000 (12:10 -0500)
commitcd496926155afcb3b6323e70dd720dc118b3a255
treeb3888a5f444f024176fc6c15c645d9245c85ec01
parent45b23ff8f05d8f145d680476dd08e7f444cef547
vmmouse: adapt to mouse handler changes.

This patch updates the vmmouse handler registration and activation.

Old behavior:
  vmmouse_read_id, vmmouse_request_relative and vmmouse_request_absolute
  unregister the handler and re-register it.

New behavior:
  vmmouse_request_relative and vmmouse_request_absolute will unregister
  the handler in case the mode did change.  Then register and active the
  handler with current mode if needed.

Note that the old code never ever *activates* the handler, so the
vmmouse doesn't receive events.  This trips up Fedora 14 for example:
Boot a default install without usb tablet, watch the X-Server activating
the vmmouse then, enjoy a non-functional mouse.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/vmmouse.c