From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: Gerd Hoffmann 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> Subject: [Qemu-devel] [PATCH 2/5] vnc: send desktopresize event as reply to set encodings List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann 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); } -- 1.6.6.1