From patchwork Tue May 25 16:25:17 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerd Hoffmann X-Patchwork-Id: 53559 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id AACC1B6F11 for ; Wed, 26 May 2010 02:36:59 +1000 (EST) Received: from localhost ([127.0.0.1]:58593 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGx7g-0007Az-LE for incoming@patchwork.ozlabs.org; Tue, 25 May 2010 12:36:56 -0400 Received: from [140.186.70.92] (port=57706 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGwwW-0000sN-NS for qemu-devel@nongnu.org; Tue, 25 May 2010 12:25:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGwwV-0005X3-G5 for qemu-devel@nongnu.org; Tue, 25 May 2010 12:25:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40982) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGwwV-0005Wm-2M for qemu-devel@nongnu.org; Tue, 25 May 2010 12:25:23 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o4PGPMLG015683 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 May 2010 12:25:22 -0400 Received: from zweiblum.home.kraxel.org (vpn2-8-178.ams2.redhat.com [10.36.8.178]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o4PGPLjQ018785; Tue, 25 May 2010 12:25:21 -0400 Received: by zweiblum.home.kraxel.org (Postfix, from userid 500) id 728007012D; Tue, 25 May 2010 18:25:20 +0200 (CEST) From: Gerd Hoffmann To: qemu-devel@nongnu.org Date: Tue, 25 May 2010 18:25:17 +0200 Message-Id: <1274804720-518-3-git-send-email-kraxel@redhat.com> In-Reply-To: <1274804720-518-1-git-send-email-kraxel@redhat.com> References: <1274804720-518-1-git-send-email-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Gerd Hoffmann Subject: [Qemu-devel] [PATCH 2/5] vnc: send desktopresize event as reply to set encodings X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org In case the desktop did resize while the vnc connection setup was still in progress the client isn't informed about it. Send a desktop resize event as soon as the client told us it can handle deskop resize via set encodings message to make sure the client us up to date. Signed-off-by: Gerd Hoffmann --- vnc.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/vnc.c b/vnc.c index aaebe24..0e0e566 100644 --- a/vnc.c +++ b/vnc.c @@ -1709,6 +1709,7 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) break; } } + vnc_desktop_resize(vs); check_pointer_type_change(&vs->mouse_mode_notifier); }