From: Gerd Hoffmann Date: Tue, 25 May 2010 16:25:17 +0000 (+0200) Subject: vnc: send desktopresize event as reply to set encodings X-Git-Tag: pull-nvme-20200902~11694 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=6356e472512c55a5dc3aaf12ce12a6eb916dd045;p=qemu-nvme.git 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 --- diff --git a/vnc.c b/vnc.c index 4fb13ba886..a3a7840075 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); }