Blame 0433-qxl-render-fix-broken-vnc-spice-since-commit-f934493.patch

Hans de Goede 56753f
From 68fc3d666b28d14c5023c1f2115cd3a51389f838 Mon Sep 17 00:00:00 2001
Hans de Goede 56753f
From: Alon Levy <alevy@redhat.com>
Hans de Goede 56753f
Date: Wed, 18 Apr 2012 12:24:28 +0300
Hans de Goede 56753f
Subject: [PATCH 433/434] qxl-render: fix broken vnc+spice since commit
Hans de Goede 56753f
 f934493
Hans de Goede 56753f
Hans de Goede 56753f
Notify any listeners such as vnc that the displaysurface has been
Hans de Goede 56753f
changed, otherwise they will segfault when first accessing the freed old
Hans de Goede 56753f
displaysurface data.
Hans de Goede 56753f
Hans de Goede 56753f
Signed-off-by: Alon Levy <alevy@redhat.com>
Hans de Goede 56753f
---
Hans de Goede 56753f
 hw/qxl-render.c |    1 +
Hans de Goede 56753f
 1 file changed, 1 insertion(+)
Hans de Goede 56753f
Hans de Goede 56753f
diff --git a/hw/qxl-render.c b/hw/qxl-render.c
Hans de Goede 56753f
index 835dc5e..180b8f9 100644
Hans de Goede 56753f
--- a/hw/qxl-render.c
Hans de Goede 56753f
+++ b/hw/qxl-render.c
Hans de Goede 56753f
@@ -127,6 +127,7 @@ static void qxl_render_update_area_unlocked(PCIQXLDevice *qxl)
Hans de Goede 56753f
             qemu_resize_displaysurface(vga->ds,
Hans de Goede 56753f
                     qxl->guest_primary.surface.width,
Hans de Goede 56753f
                     qxl->guest_primary.surface.height);
Hans de Goede 56753f
+            dpy_resize(vga->ds);
Hans de Goede 56753f
         }
Hans de Goede 56753f
     }
Hans de Goede 56753f
     for (i = 0; i < qxl->num_dirty_rects; i++) {
Hans de Goede 56753f
-- 
Hans de Goede 56753f
1.7.10
Hans de Goede 56753f