diff mbox

[v2] qxl-render: fix broken vnc+spice since commit f934493

Message ID 1334741220-12094-1-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy April 18, 2012, 9:27 a.m. UTC
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(+)

Comments

Gerd Hoffmann April 18, 2012, 10:18 a.m. UTC | #1
On 04/18/12 11:27, Alon Levy wrote:
> Notify any listeners such as vnc that the displaysurface has been
> changed, otherwise they will segfault when first accessing the freed old
> displaysurface data.

Patch added to spice patch queue.

thanks,
  Gerd
diff mbox

Patch

diff --git a/hw/qxl-render.c b/hw/qxl-render.c
index 04eca5c..0331c23 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)) {