ui/vdagent: send caps on fe_open
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 17 Jul 2024 17:15:40 +0000 (21:15 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 22 Jul 2024 08:47:28 +0000 (12:47 +0400)
commit865714cb3b88320e2e840eb851d084c757511a12
tree1a2b8d0a93d8af26d5bb84ef1c8f382a82b5d4c4
parent63a5d4de589330f0a1c46f59a4b7336adda4635b
ui/vdagent: send caps on fe_open

The spice-vdagentd doesn't send capabilities again on host/client
disconnect (but when the session agent connects and sends a
GUEST_XORG_RESOLUTION message)

When the dbus client disconnects, vdagent_disconnect() is called to
reset the agent state. Capabilities must be negotiated again on
reconnection.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-Id: <20240717171541.201525-5-marcandre.lureau@redhat.com>
ui/vdagent.c