vnc: fix gtk-vnc compatibility issues.
vnc: vmware svga cleanup -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoDKM/7k6F6eZAf59TLbY7tPocTgFAmARR+sACgkQTLbY7tPo cTh8AxAAvupvxFNB9SUI0K8MvK695fW8ivLDIm50qg/6I8gGrcTThhshNMQMW/qq 6LE6fXNVzimgKW1cBv4DFUsCtE7vio305sXA3lgQJR/PSRUAoCEc7bE79HsJg6LV 3Uc6tQEENF+YcX7fI+xm9Oabepk/qi02+T+52DRiKGzWc6F+dIy7U71h8vXBWBNT mTxz9JMwBoUzbCuTu8cjTiG3VcYT+dR4g4vuvbHFKZg7wqOT7IYTtQwEg9NVKX2x TkpGMOoK+wi0RBWxR1Qq6m+YQa1Dcu+W3TsYYYahIXTIH7ZGmTQSgz6vzOdFwhvK zOI0j71DDp5ZsOFtFronw5D5puIl9kCHODnjdfPFCnPcMwleD8fF90YXGwiVySSV J3C8eYjELP3K++JZKlPdPnkqBclztIpQnYKsQ9MZ0bXqFzEjXajnFeedN2qScZI9 jbSYCMa0+hAickeV7yJ8ixdWdBnOor5UDMdd+nZO3CtqeEoCJzdeSpDVJAjP97Jc /trvEddao41dd43QWgOZaGd7pvVnRFJyMQUXRldSupFQ6YByB/huC2/XF3Zf6iuL B2vdliBtZu4a673CdR6ErSD6eLXtwP9o0MVIPJdk4aITTJvjRk47u2/2A44oEAzt l9giXxl1D86jekfwJo7JtzJXBeGQcAzNMO4uvvJkFj+niLdQDE0= =cAKy -----END PGP SIGNATURE----- Merge remote-tracking branch 'remotes/kraxel/tags/ui-20210127-pull-request' into staging vnc: fix gtk-vnc compatibility issues. vnc: vmware svga cleanup # gpg: Signature made Wed 27 Jan 2021 11:00:59 GMT # gpg: using RSA key A0328CFFB93A17A79901FE7D4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/ui-20210127-pull-request: hw/display/vmware_vga: Remove dependency on VNC header vnc: send extended desktop resize on update requests Revert "vnc: move initialization to framebuffer_update_request" Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
commit
091f255b89
|
@ -29,7 +29,6 @@
|
|||
#include "qemu/log.h"
|
||||
#include "hw/loader.h"
|
||||
#include "trace.h"
|
||||
#include "ui/vnc.h"
|
||||
#include "hw/pci/pci.h"
|
||||
#include "hw/qdev-properties.h"
|
||||
#include "migration/vmstate.h"
|
||||
|
@ -220,7 +219,7 @@ enum {
|
|||
|
||||
/* These values can probably be changed arbitrarily. */
|
||||
#define SVGA_SCRATCH_SIZE 0x8000
|
||||
#define SVGA_MAX_WIDTH ROUND_UP(2360, VNC_DIRTY_PIXELS_PER_BIT)
|
||||
#define SVGA_MAX_WIDTH 2368
|
||||
#define SVGA_MAX_HEIGHT 1770
|
||||
|
||||
#ifdef VERBOSE
|
||||
|
|
14
ui/vnc.c
14
ui/vnc.c
|
@ -687,6 +687,10 @@ static void vnc_desktop_resize(VncState *vs)
|
|||
!vnc_has_feature(vs, VNC_FEATURE_RESIZE_EXT))) {
|
||||
return;
|
||||
}
|
||||
if (vs->client_width == pixman_image_get_width(vs->vd->server) &&
|
||||
vs->client_height == pixman_image_get_height(vs->vd->server)) {
|
||||
return;
|
||||
}
|
||||
|
||||
assert(pixman_image_get_width(vs->vd->server) < 65536 &&
|
||||
pixman_image_get_width(vs->vd->server) >= 0);
|
||||
|
@ -2042,10 +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);
|
||||
vnc_colordepth(vs);
|
||||
vnc_desktop_resize(vs);
|
||||
vnc_led_state_change(vs);
|
||||
vnc_cursor_define(vs);
|
||||
if (vnc_has_feature(vs, VNC_FEATURE_RESIZE_EXT)) {
|
||||
vnc_desktop_resize_ext(vs, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -2189,7 +2192,10 @@ 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, NULL);
|
||||
vnc_led_state_change(vs);
|
||||
vnc_cursor_define(vs);
|
||||
}
|
||||
|
||||
static void set_pixel_conversion(VncState *vs)
|
||||
|
|
Loading…
Reference in a new issue