msmouse: add MouseState, unregister handler on close
commitcde8dcbc926d9b960a96c7d637b9c23515e06c0b
authorGerd Hoffmann <kraxel@redhat.com>
Mon, 4 Jul 2016 09:42:52 +0000 (4 11:42 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jul 2016 07:24:31 +0000 (12 09:24 +0200)
tree92c22e333fbfe775cf868ce262bd28af3037ba99
parentf1ef55786691a1bf79db0b74ba1e5347a0d38c1b
msmouse: add MouseState, unregister handler on close

Add struct to track serial mouse state.  Store mouse event handler
there.  Unregister properly on chardev close.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1467625375-31774-2-git-send-email-kraxel@redhat.com
backends/msmouse.c