Patchwork [3/7] qxl: fix cursor reset

login
register
mail settings
Submitter Gerd Hoffmann
Date Nov. 2, 2012, 9:35 a.m.
Message ID <1351848919-10388-4-git-send-email-kraxel@redhat.com>
Download mbox | patch
Permalink /patch/196516/
State New
Headers show

Comments

Gerd Hoffmann - Nov. 2, 2012, 9:35 a.m.
When resetting the qxl cursor notify the qemu displaystate too.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 hw/qxl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/qxl.c b/hw/qxl.c
index f19451b..063970d 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -293,6 +293,10 @@  void qxl_spice_reset_cursor(PCIQXLDevice *qxl)
     qemu_mutex_lock(&qxl->track_lock);
     qxl->guest_cursor = 0;
     qemu_mutex_unlock(&qxl->track_lock);
+    if (qxl->ssd.cursor) {
+        cursor_put(qxl->ssd.cursor);
+    }
+    qxl->ssd.cursor = cursor_builtin_hidden();
 }