]> Git Repo - qemu.git/commitdiff
qxl-render: fix broken vnc+spice since commit f934493
authorAlon Levy <[email protected]>
Wed, 18 Apr 2012 09:27:00 +0000 (12:27 +0300)
committerGerd Hoffmann <[email protected]>
Wed, 18 Apr 2012 10:21:53 +0000 (12:21 +0200)
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 <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/qxl-render.c

index 28ab182226aee4befbda5b110f6b0ee0126aa047..f7f1bfda04cdfb3ba21de0e9042e166fcc576c92 100644 (file)
@@ -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)) {
This page took 0.028266 seconds and 4 git commands to generate.