From: Gerd Hoffmann Date: Mon, 25 Jan 2021 10:40:41 +0000 (+0100) Subject: vnc: send extended desktop resize on update requests X-Git-Tag: v6.0.0-rc0~122^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=104b8d193248032bb3357ef7f6f2f2dd5824731e;p=thirdparty%2Fqemu.git vnc: send extended desktop resize on update requests Unlike other pseudo-encodings these don't break gtk-vnc because older versions don't suport the extended desktop resize extension in the first place. Signed-off-by: Gerd Hoffmann Tested-by: Laszlo Ersek Message-Id: <20210125104041.495274-3-kraxel@redhat.com> --- diff --git a/ui/vnc.c b/ui/vnc.c index 2622f82a5a9..16bb3be770b 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -2046,6 +2046,9 @@ static void framebuffer_update_request(VncState *vs, int incremental, } else { vs->update = VNC_STATE_UPDATE_FORCE; vnc_set_area_dirty(vs->dirty, vs->vd, x, y, w, h); + if (vnc_has_feature(vs, VNC_FEATURE_RESIZE_EXT)) { + vnc_desktop_resize_ext(vs, 0); + } } }