Merge branch 'grab-cursor-fix' into 'master'

window: Prevent resize cursors from sticking

Closes #23

See merge request GNOME/gtk!797
This commit is contained in:
Matthias Clasen 2019-05-01 00:42:09 +00:00
commit f1919c706f

View File

@ -9885,7 +9885,10 @@ update_cursor (GtkWindow *toplevel,
/* Outside the grab widget, cursor stays to whatever the grab
* widget says.
*/
cursor = gtk_widget_get_cursor (grab_widget);
if (gtk_widget_get_surface (grab_widget) == gtk_widget_get_surface (target))
cursor = gtk_widget_get_cursor (grab_widget);
else
cursor = NULL;
}
else
{