dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

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

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