[Spice-devel] [PATCH spice-gtk] widget: regrab when widget is reconfigured

Christophe Fergeau cfergeau at redhat.com
Tue Nov 13 06:17:50 PST 2012


ACK


Christophe

On Mon, Nov 12, 2012 at 09:58:39PM +0100, Marc-André Lureau wrote:
> 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
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20121113/2fd81b45/attachment.pgp>


More information about the Spice-devel mailing list