mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 07:04:29 +00:00
main: Pass toplevel_widget directly to GtkWidget API
We already have the toplevel as GtkWidget: toplevel_widget.
This commit is contained in:
parent
c67bcf09b9
commit
f5e04b59e9
@ -1597,9 +1597,9 @@ handle_pointing_event (GdkEvent *event)
|
||||
case GDK_TOUCH_BEGIN:
|
||||
case GDK_TOUCH_UPDATE:
|
||||
case GDK_MOTION_NOTIFY:
|
||||
target = gtk_widget_pick (GTK_WIDGET (toplevel), x, y);
|
||||
target = gtk_widget_pick (toplevel_widget, x, y);
|
||||
if (target == NULL)
|
||||
target = GTK_WIDGET (toplevel);
|
||||
target = toplevel_widget;
|
||||
old_target = update_pointer_focus_state (toplevel, event, target);
|
||||
|
||||
if (event->any.type == GDK_MOTION_NOTIFY || event->any.type == GDK_ENTER_NOTIFY)
|
||||
|
Loading…
Reference in New Issue
Block a user