aboutsummaryrefslogtreecommitdiff
path: root/hw/qxl.c
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2012-02-24 23:19:25 +0200
committerGerd Hoffmann <kraxel@redhat.com>2012-02-27 09:46:51 +0100
commitbb5a8cd5b0aec0286c5e749803083de22c2b0be6 (patch)
tree663016b87db6ea981d6f6df2134acc81c3ba695a /hw/qxl.c
parentb4bd0b168e9f4898b98308f4a8a089f647a86d16 (diff)
qxl: fix spice+sdl no cursor regression
regression introduced by 075360945860ad9bdd491921954b383bf762b0e5, v2: lock around qemu_spice_cursor_refresh_unlocked Reported-by: Fabiano FidĂȘncio <fabiano@fidencio.org> Signed-off-by: Alon Levy <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/qxl.c')
-rw-r--r--hw/qxl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/qxl.c b/hw/qxl.c
index f643667205..0bbf0e8c16 100644
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -1545,6 +1545,10 @@ static void display_refresh(struct DisplayState *ds)
{
if (qxl0->mode == QXL_MODE_VGA) {
qemu_spice_display_refresh(&qxl0->ssd);
+ } else {
+ qemu_mutex_lock(&qxl0->ssd.lock);
+ qemu_spice_cursor_refresh_unlocked(&qxl0->ssd);
+ qemu_mutex_unlock(&qxl0->ssd.lock);
}
}