From: Frediano Ziglio Date: Wed, 2 Mar 2016 14:32:22 +0000 (+0000) Subject: vnc: send cursor when a new client is connecting X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=91ec41dc3f9cf28f93af0630b20ba8e7dcefa16b;p=qemu.git vnc: send cursor when a new client is connecting If you have hardware cursor and you are reconnecting the VNC client you need to send the cursor. Failing to do so make the cursor invisible till is changed. Signed-off-by: Frediano Ziglio Message-id: 1456929142-14033-1-git-send-email-fziglio@redhat.com Signed-off-by: Gerd Hoffmann --- diff --git a/ui/vnc.c b/ui/vnc.c index 6cd63141c4..729f630e3a 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2046,6 +2046,9 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) break; case VNC_ENCODING_RICH_CURSOR: vs->features |= VNC_FEATURE_RICH_CURSOR_MASK; + if (vs->vd->cursor) { + vnc_cursor_define(vs); + } break; case VNC_ENCODING_EXT_KEY_EVENT: send_ext_key_event_ack(vs);