mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 14:50:06 +00:00
Avoid infinite recursion when removing a grab
https://bugzilla.gnome.org/show_bug.cgi?id=671819
This commit is contained in:
parent
232314d0fd
commit
de115c3fd3
@ -2365,9 +2365,10 @@ range_grab_remove (GtkRange *range)
|
||||
|
||||
if (priv->grab_device)
|
||||
{
|
||||
gtk_device_grab_remove (GTK_WIDGET (range),
|
||||
priv->grab_device);
|
||||
GdkDevice *grab_device = priv->grab_device;
|
||||
|
||||
priv->grab_device = NULL;
|
||||
gtk_device_grab_remove (GTK_WIDGET (range), grab_device);
|
||||
}
|
||||
|
||||
location = priv->grab_location;
|
||||
|
Loading…
Reference in New Issue
Block a user