The tablet uinput device is closed and opened by vdagentd as a result of
guest_xorg_res.
So far this message was only sent on startup of vdagent. Unless we resend it
uinput doesn't know of the changed resolution, and the mouse position in the
guest is incorrect.
---
vdagent-x11.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/vdagent-x11.c b/vdagent-x11.c
index 00d1886..a8dadde 100644
--- a/vdagent-x11.c
+++ b/vdagent-x11.c
@@ -789,6 +789,9 @@ void vdagent_x11_set_monitor_config(struct vdagent_x11 *x11,
rotation, CurrentTime);
XRRFreeScreenConfigInfo(config);
XFlush(x11->display);
+ x11->width = sizes[best].width;
+ x11->height = sizes[best].height;
+ vdagent_x11_send_daemon_guest_xorg_res(x11);
}
void vdagent_x11_clipboard_request(struct vdagent_x11 *x11, uint32_t type)
--
1.7.3.1
_______________________________________________
Spice-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/spice-devel