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: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
2914fc61d5
commit
d99e8b5fcb
|
@ -158,6 +158,7 @@ static void vmmouse_read_id(VMMouseState *s)
|
||||||
|
|
||||||
s->queue[s->nb_queue++] = VMMOUSE_VERSION;
|
s->queue[s->nb_queue++] = VMMOUSE_VERSION;
|
||||||
s->status = 0;
|
s->status = 0;
|
||||||
|
vmmouse_update_handler(s, s->absolute);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vmmouse_request_relative(VMMouseState *s)
|
static void vmmouse_request_relative(VMMouseState *s)
|
||||||
|
|
Loading…
Reference in a new issue