summaryrefslogtreecommitdiff
path: root/gtk/gtksearchentry.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-03 19:40:32 +0100
committerBenjamin Otte <otte@redhat.com>2019-03-03 19:50:59 +0100
commitbed4c68041fb77a683c29ec5a5e6ddddb441058c (patch)
treeaafe36d81443359dee7196e8abb880ffeb2416b4 /gtk/gtksearchentry.c
parent8ceff2149768a5af1e35f54f39b338d9d8ecea21 (diff)
downloadgtk+-bed4c68041fb77a683c29ec5a5e6ddddb441058c.tar.gz
widget: Fix gtk_widget_pick() on 3d-transformed widgets
Picking is done by drawing a line along the parent's z axis and picking at the intersection with the child's z=0 plane. However, the previous code was casting a ray along the child's z axis. This patch actually transforms the line to pick into the target's coordinate system and then computes the corrrect intersection with the z=0 plane. Using graphene_point3d_interpolate() to compute the final intersection point is a bit of abuse of that function, but I found no better way in Graphene to achieve the same thing.
Diffstat (limited to 'gtk/gtksearchentry.c')
0 files changed, 0 insertions, 0 deletions