aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2012-10-30 14:55:12 +0100
committerGerd Hoffmann <kraxel@redhat.com>2012-11-05 11:49:22 +0100
commite32c25b5f2452c7fed4dbe8962f4a9f4831fbe24 (patch)
tree10fd0f1669f24fa235078fcd8616ca8d10397f44 /hw
parent958c2bceba06696e9c223498aaf81d06ce95f608 (diff)
downloadqemu-e32c25b5f2452c7fed4dbe8962f4a9f4831fbe24.zip
qemu-e32c25b5f2452c7fed4dbe8962f4a9f4831fbe24.tar.gz
qemu-e32c25b5f2452c7fed4dbe8962f4a9f4831fbe24.tar.bz2
qxl: call dpy_gfx_resize when entering vga mode
When entering vga mode the display size likely changes, notify all displaychangelisteners about this. Probably went unnoticed for a while as one if the first things the guest does after leaving qxl native mode and entering qxl vga mode is to set the vga video mode. But there is still a small window where qemu can operate on stale data, leading to crashes now and then. https://bugzilla.redhat.com/show_bug.cgi?id=865767 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/qxl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index 063970d..e7bf3a1 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1069,7 +1069,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)
trace_qxl_enter_vga_mode(d->id);
qemu_spice_create_host_primary(&d->ssd);
d->mode = QXL_MODE_VGA;
- memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty));
+ dpy_gfx_resize(d->ssd.ds);
vga_dirty_log_start(&d->vga);
}