]> Git Repo - qemu.git/commitdiff
hw/i386: fix vmmouse registration
authorPavel Dovgalyuk <[email protected]>
Tue, 26 Oct 2021 09:54:05 +0000 (12:54 +0300)
committerMichael S. Tsirkin <[email protected]>
Mon, 1 Nov 2021 23:36:11 +0000 (19:36 -0400)
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 <[email protected]>
Message-Id: <163524204515.1914131.16465061981774791228.stgit@pasha-ThinkPad-X280>
Signed-off-by: Michael S. Tsirkin <[email protected]>
hw/i386/vmmouse.c

index df4798f502849579105ef166fe9a5db6c1629477..3d663682863cfcb8328e52fcd213f96a630fe1bf 100644 (file)
@@ -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)
This page took 0.02912 seconds and 4 git commands to generate.