ui/vdagent: call vdagent_disconnect() when agent connection is lost
commit1b4fd51656556646b1a0842e596cb606d73e26cf
authorGuoyi Tu <tugy@chinatelecom.cn>
Thu, 17 Aug 2023 14:12:52 +0000 (17 22:12 +0800)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 4 Sep 2023 11:29:07 +0000 (4 15:29 +0400)
tree17139f088123fc69f5342915bdbfd3a76302ada1
parent7007e98c4ba443ce5d42acf851daaa1835b18e83
ui/vdagent: call vdagent_disconnect() when agent connection is lost

when the agent connection is lost, the input handler of the mouse
doesn't deactivate, which results in unresponsive mouse events in
VNC windows.

To fix this issue, call vdagent_disconnect() to reset the state
each time the frontend disconncect

Signed-off-by: Guoyi Tu <tugy@chinatelecom.cn>
Signed-off-by: dengpengcheng <dengpc12@chinatelecom.cn>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <71fd5a58fd09f10cdb35f167b2edb5669300116e.1692281173.git.tugy@chinatelecom.cn>
ui/vdagent.c