From: Gerd Hoffmann Date: Fri, 14 Sep 2012 20:17:44 +0000 (+0200) Subject: qxl: fix cursor reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=958c2bceba06696e9c223498aaf81d06ce95f608;p=qemu.git qxl: fix cursor reset When resetting the qxl cursor notify the qemu displaystate too. Signed-off-by: Gerd Hoffmann --- diff --git a/hw/qxl.c b/hw/qxl.c index f19451bd6f..063970dc28 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(); }