diff options
author | Alon Levy <alevy@redhat.com> | 2012-02-24 23:19:25 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-02-27 09:46:51 +0100 |
commit | bb5a8cd5b0aec0286c5e749803083de22c2b0be6 (patch) | |
tree | 663016b87db6ea981d6f6df2134acc81c3ba695a /hw/qxl.c | |
parent | b4bd0b168e9f4898b98308f4a8a089f647a86d16 (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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); } } |