window: Don't inherit cursors across surfaces

I can't think of a case where this is the desired
behavior. So, instead of setting an explicit cursor
on all popups, just stop walking the parents at
surface boundaries.
This commit is contained in:
Matthias Clasen 2019-05-04 16:21:33 +00:00
parent f3559fe0f0
commit 1f2d3c0900

View File

@ -9923,6 +9923,10 @@ update_cursor (GtkWindow *toplevel,
if (grab_widget && target == grab_widget)
break;
/* Don't inherit cursors across surfaces */
if (surface != gtk_widget_get_surface (target))
break;
cursor = gtk_widget_get_cursor (target);
if (cursor)