diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2021-01-25 11:40:41 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2021-01-27 09:47:07 +0100 |
commit | 104b8d193248032bb3357ef7f6f2f2dd5824731e (patch) | |
tree | 208dfeb47ee06472f9e4e20aabf92b1cc8641dde /ui | |
parent | d239726c53fd9d3b5e6a89c5a22ed57d8ab0a9aa (diff) | |
download | qemu-104b8d193248032bb3357ef7f6f2f2dd5824731e.zip qemu-104b8d193248032bb3357ef7f6f2f2dd5824731e.tar.gz qemu-104b8d193248032bb3357ef7f6f2f2dd5824731e.tar.bz2 |
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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); + } } } |