main: Pass toplevel_widget directly to GtkWidget API

We already have the toplevel as GtkWidget: toplevel_widget.
This commit is contained in:
Timm Bäder 2018-07-21 10:26:06 +02:00
parent c67bcf09b9
commit f5e04b59e9

View File

@ -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)