diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-05 00:49:18 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-05 05:13:17 +0100 |
commit | cf2d549e922b51e7c4c790c04531be0cfb6ddd63 (patch) | |
tree | 3d0b78e35cb5816563eac6fd20e28fce7a228392 /gtk/gtkpointerfocus.c | |
parent | 65a7557fc13511665138132d1d25aa593b65e433 (diff) | |
download | gtk+-cf2d549e922b51e7c4c790c04531be0cfb6ddd63.tar.gz |
widget: Implement gtk_widget_pick()
... and use it.
Diffstat (limited to 'gtk/gtkpointerfocus.c')
-rw-r--r-- | gtk/gtkpointerfocus.c | 5 |
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); } |