forked from AuroraMiddleware/gtk
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:
parent
f3559fe0f0
commit
1f2d3c0900
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user