All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] spice: wakeup QXL worker to pick up mouse changes
@ 2017-01-30 10:45 Marc-André Lureau
  2017-01-31  7:51 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Marc-André Lureau @ 2017-01-30 10:45 UTC (permalink / raw)
  To: qemu-devel; +Cc: kraxel, Marc-André Lureau

Without it, server-mode mouse is "slow" to update position: QXL will
wait until new display commands come. This is very visible with
virtio-gpu.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
---
 ui/spice-display.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ui/spice-display.c b/ui/spice-display.c
index 5e6f78a219..64e472eeb0 100644
--- a/ui/spice-display.c
+++ b/ui/spice-display.c
@@ -769,6 +769,7 @@ static void display_mouse_set(DisplayChangeListener *dcl,
     g_free(ssd->ptr_move);
     ssd->ptr_move = qemu_spice_create_cursor_update(ssd, NULL, on);
     qemu_mutex_unlock(&ssd->lock);
+    qemu_spice_wakeup(ssd);
 }
 
 static void display_mouse_define(DisplayChangeListener *dcl,
@@ -787,6 +788,7 @@ static void display_mouse_define(DisplayChangeListener *dcl,
     g_free(ssd->ptr_define);
     ssd->ptr_define = qemu_spice_create_cursor_update(ssd, c, 0);
     qemu_mutex_unlock(&ssd->lock);
+    qemu_spice_wakeup(ssd);
 }
 
 static const DisplayChangeListenerOps display_listener_ops = {
-- 
2.11.0.295.gd7dffce1c.dirty

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] spice: wakeup QXL worker to pick up mouse changes
  2017-01-30 10:45 [Qemu-devel] [PATCH] spice: wakeup QXL worker to pick up mouse changes Marc-André Lureau
@ 2017-01-31  7:51 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2017-01-31  7:51 UTC (permalink / raw)
  To: Marc-André Lureau; +Cc: qemu-devel

On Mo, 2017-01-30 at 14:45 +0400, Marc-André Lureau wrote:
> Without it, server-mode mouse is "slow" to update position: QXL will
> wait until new display commands come. This is very visible with
> virtio-gpu.

Added to ui queue.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-01-31  7:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-30 10:45 [Qemu-devel] [PATCH] spice: wakeup QXL worker to pick up mouse changes Marc-André Lureau
2017-01-31  7:51 ` Gerd Hoffmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.