From 6356e472512c55a5dc3aaf12ce12a6eb916dd045 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Tue, 25 May 2010 18:25:17 +0200 Subject: [PATCH] vnc: send desktopresize event as reply to set encodings 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 Signed-off-by: Anthony Liguori --- vnc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/vnc.c b/vnc.c index 4fb13ba88..a3a784007 100644 --- a/vnc.c +++ b/vnc.c @@ -1726,6 +1726,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); } -- 2.39.5