summaryrefslogtreecommitdiff
path: root/gtk/gtkpointerfocus.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2017-11-05 00:49:18 +0100
committerBenjamin Otte <otte@redhat.com>2017-11-05 05:13:17 +0100
commitcf2d549e922b51e7c4c790c04531be0cfb6ddd63 (patch)
tree3d0b78e35cb5816563eac6fd20e28fce7a228392 /gtk/gtkpointerfocus.c
parent65a7557fc13511665138132d1d25aa593b65e433 (diff)
downloadgtk+-cf2d549e922b51e7c4c790c04531be0cfb6ddd63.tar.gz
widget: Implement gtk_widget_pick()
... and use it.
Diffstat (limited to 'gtk/gtkpointerfocus.c')
-rw-r--r--gtk/gtkpointerfocus.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtkpointerfocus.c b/gtk/gtkpointerfocus.c
index cb484b8d34..5229e39e12 100644
--- a/gtk/gtkpointerfocus.c
+++ b/gtk/gtkpointerfocus.c
@@ -133,7 +133,8 @@ gtk_pointer_focus_repick_target (GtkPointerFocus *focus)
{
GtkWidget *target;
- target = _gtk_toplevel_pick (focus->toplevel, focus->x, focus->y,
- NULL, NULL);
+ target = gtk_widget_pick (GTK_WIDGET (focus->toplevel), focus->x, focus->y);
+ if (target == NULL)
+ target = GTK_WIDGET (focus->toplevel);
gtk_pointer_focus_set_target (focus, target);
}