[Spice-devel] [PATCH spice-gtk] widget: regrab when widget is reconfigured
Marc-André Lureau
marcandre.lureau at gmail.com
Mon Nov 12 12:58:39 PST 2012
On Windows, we need to update the cursor clip region. Call ungrab&grab
to update it.
---
gtk/spice-widget.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 25c2e09..42da4bc 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -1374,6 +1374,10 @@ static gboolean configure_event(GtkWidget *widget, GdkEventConfigure *conf)
d->wh = conf->height;
recalc_geometry(widget);
}
+
+ try_mouse_ungrab(display);
+ try_mouse_grab(display);
+
return true;
}
--
1.7.11.7
More information about the Spice-devel
mailing list