Patchwork qxl-render: fix broken vnc+spice since commit f934493

login
register
mail settings
Submitter Alon Levy
Date April 18, 2012, 9:24 a.m.
Message ID <1334741068-11762-1-git-send-email-alevy@redhat.com>
Download mbox | patch
Permalink /patch/153443/
State New
Headers show

Comments

Alon Levy - April 18, 2012, 9:24 a.m.
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>
---
 hw/qxl-render.c |    1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/hw/qxl-render.c b/hw/qxl-render.c
index 04eca5c..ee9ea6d 100644
--- a/hw/qxl-render.c
+++ b/hw/qxl-render.c
@@ -126,6 +126,7 @@  static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl)
             qemu_resize_displaysurface(vga->ds,
                     qxl->guest_primary.surface.width,
                     qxl->guest_primary.surface.height);
+            dpy_resize(vga->ds);
         }
     }
     for (i = 0; i < qxl->num_dirty_rects; i++) {