From patchwork Wed Mar 9 09:04:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 8544231 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C163BC0553 for ; Wed, 9 Mar 2016 09:08:14 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C05E2025A for ; Wed, 9 Mar 2016 09:08:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 91E6020256 for ; Wed, 9 Mar 2016 09:08:13 +0000 (UTC) Received: from localhost ([::1]:40059 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ada6G-0004dx-SI for patchwork-qemu-devel@patchwork.kernel.org; Wed, 09 Mar 2016 04:08:12 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ada2w-0007hG-0g for qemu-devel@nongnu.org; Wed, 09 Mar 2016 04:04:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ada2s-00076P-7E for qemu-devel@nongnu.org; Wed, 09 Mar 2016 04:04:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:42365) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ada2s-00075i-2R for qemu-devel@nongnu.org; Wed, 09 Mar 2016 04:04:42 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id 86914C00B8C7 for ; Wed, 9 Mar 2016 09:04:40 +0000 (UTC) Received: from nilsson.home.kraxel.org (ovpn-116-31.ams2.redhat.com [10.36.116.31]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u2994dZP010924; Wed, 9 Mar 2016 04:04:40 -0500 Received: by nilsson.home.kraxel.org (Postfix, from userid 500) id DE79B8275B; Wed, 9 Mar 2016 10:04:38 +0100 (CET) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Wed, 9 Mar 2016 10:04:33 +0100 Message-Id: <1457514277-32408-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1457514277-32408-1-git-send-email-kraxel@redhat.com> References: <1457514277-32408-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Gerd Hoffmann , Frediano Ziglio Subject: [Qemu-devel] [PULL 1/5] vnc: send cursor when a new client is connecting X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: 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 Message-id: 1456929142-14033-1-git-send-email-fziglio@redhat.com Signed-off-by: Gerd Hoffmann --- ui/vnc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/vnc.c b/ui/vnc.c index 6cd6314..729f630 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);