Patchwork [3/3] qxl-render: fix broken vnc+spice since commit f934493

login
register
mail settings
Submitter Gerd Hoffmann
Date April 18, 2012, 10:26 a.m.
Message ID <1334744769-8301-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/153467/
State New
Headers show

Comments

Gerd Hoffmann - April 18, 2012, 10:26 a.m.
From: Alon Levy <alevy@redhat.com>

Notify any listeners such as vnc that the displaysurface has been
changed, otherwise they will segfault when first accessing the freed old
displaysurface data.

Signed-off-by: Alon Levy <alevy@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/qxl-render.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/qxl-render.c b/hw/qxl-render.c
index 28ab182..f7f1bfd 100644
--- a/hw/qxl-render.c
+++ b/hw/qxl-render.c
@@ -127,6 +127,7 @@  static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl)
                     qxl->guest_primary.surface.width,
                     qxl->guest_primary.surface.height);
         }
+        dpy_resize(vga->ds);
     }
     for (i = 0; i < qxl->num_dirty_rects; i++) {
         if (qemu_spice_rect_is_empty(qxl->dirty+i)) {