[Spice-devel] [PATCH spice-gtk 2/3] Refresh mouse shape/visibility when changing mouse mode
Marc-André Lureau
marcandre.lureau at gmail.com
Fri Dec 9 06:59:33 PST 2011
This fixes the dynamic mode changing when running/quitting the agent.
---
gtk/spice-widget.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 07fb677..d9ee2f6 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -1400,12 +1400,11 @@ static void mouse_update(SpiceChannel *channel, gpointer data)
g_object_get(channel, "mouse-mode", &d->mouse_mode, NULL);
SPICE_DEBUG("mouse mode %d", d->mouse_mode);
- d->mouse_guest_x = -1;
- d->mouse_guest_y = -1;
- if (d->mouse_mode == SPICE_MOUSE_MODE_CLIENT) {
+ if (d->mouse_mode == SPICE_MOUSE_MODE_CLIENT)
try_mouse_ungrab(display);
- }
+
update_mouse_pointer(display);
+ cursor_invalidate(display);
}
static void primary_create(SpiceChannel *channel, gint format,
--
1.7.7.3
More information about the Spice-devel
mailing list