diff options
author | Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> | 2021-10-26 12:54:05 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-11-02 15:57:27 +0100 |
commit | 6aedeb650e6978ee8165f05b79fbfab6ed486eff (patch) | |
tree | 9fee9aacca28a4ceb2454383fc813ebbd51aaa02 /hw/i386 | |
parent | 22afb46e7c6ed61bd41c199072cb4769d6ab14b2 (diff) | |
download | qemu-6aedeb650e6978ee8165f05b79fbfab6ed486eff.zip qemu-6aedeb650e6978ee8165f05b79fbfab6ed486eff.tar.gz qemu-6aedeb650e6978ee8165f05b79fbfab6ed486eff.tar.bz2 |
hw/i386: fix vmmouse registration
According to the logic of vmmouse_update_handler function,
vmmouse should be registered as an event handler when
it's status is zero.
vmmouse_read_id resets the status but does not register
the handler.
This patch adds vmmouse registration and activation when
status is reset.
Signed-off-by: Pavel Dovgalyuk <Pavel.Dovgalyuk@ispras.ru>
Message-Id: <163524204515.1914131.16465061981774791228.stgit@pasha-ThinkPad-X280>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/i386')
-rw-r--r-- | hw/i386/vmmouse.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/vmmouse.c b/hw/i386/vmmouse.c index df4798f..3d66368 100644 --- a/hw/i386/vmmouse.c +++ b/hw/i386/vmmouse.c @@ -158,6 +158,7 @@ static void vmmouse_read_id(VMMouseState *s) s->queue[s->nb_queue++] = VMMOUSE_VERSION; s->status = 0; + vmmouse_update_handler(s, s->absolute); } static void vmmouse_request_relative(VMMouseState *s) |