spice: use bottom half instead of refresh timer for cursor updates
commit0b2824e5e48a787be3edbfc897244b4621e5bd61
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 4 Nov 2014 12:59:59 +0000 (4 13:59 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 16 Dec 2014 13:15:29 +0000 (16 14:15 +0100)
tree5fcabf22c523190cf19655638eeb327370d46308
parentdfa9c2a0f4d0a0c8b2c1449ecdbb1297427e1560
spice: use bottom half instead of refresh timer for cursor updates

Calling directly doesn't work due to the qxl-render code running in
spice server thread context.  Meanwhile bottom half scheduling is
thread-safe though, so we can use that to kick a cursor update in
main i/o thread context.

Cc: Marc-André Lureau <marcandre.lureau@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/qxl-render.c
hw/display/qxl.c
include/ui/spice-display.h
ui/spice-display.c