aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2021-01-25 11:40:41 +0100
committerGerd Hoffmann <kraxel@redhat.com>2021-01-27 09:47:07 +0100
commit104b8d193248032bb3357ef7f6f2f2dd5824731e (patch)
tree208dfeb47ee06472f9e4e20aabf92b1cc8641dde /ui
parentd239726c53fd9d3b5e6a89c5a22ed57d8ab0a9aa (diff)
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 <kraxel@redhat.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Message-Id: <20210125104041.495274-3-kraxel@redhat.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/vnc.c b/ui/vnc.c
index 2622f82a5a..16bb3be770 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);
+ }
}
}