From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab7pK-0001yl-Lf for qemu-devel@nongnu.org; Wed, 02 Mar 2016 09:32:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab7pF-0004sc-Nc for qemu-devel@nongnu.org; Wed, 02 Mar 2016 09:32:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51132) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab7pF-0004s2-Iz for qemu-devel@nongnu.org; Wed, 02 Mar 2016 09:32:29 -0500 From: Frediano Ziglio Date: Wed, 2 Mar 2016 14:32:22 +0000 Message-Id: <1456929142-14033-1-git-send-email-fziglio@redhat.com> Subject: [Qemu-devel] [PATCH] vnc: send cursor when a new client is connecting List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: spice-devel@lists.freedesktop.org, qemu-devel@nongnu.org, Frediano Ziglio 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 --- ui/vnc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/vnc.c b/ui/vnc.c index ce4c669..825e65b 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); -- 2.5.0