# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1641225053 0 # Node ID e1b5dbec07968096230ba19c1719d4645365458a # Parent b91bc30d0e4a4b1cbcb1518abc123b27b2623993 GTK4: Was still passing the root parameter to the transform function, instead of the normalized "parent" parameter. This fixes a slight position offset down on windows with a menubar. diff -r b91bc30d0e4a -r e1b5dbec0796 gtk4/dw.c --- a/gtk4/dw.c Mon Jan 03 15:45:15 2022 +0000 +++ b/gtk4/dw.c Mon Jan 03 15:50:53 2022 +0000 @@ -1011,7 +1011,7 @@ graphene_point_t *treepoint = graphene_point_init(graphene_point_alloc(), (float)*x, (float)*y); graphene_point_t *windowpoint = graphene_point_alloc(); - if(gtk_widget_compute_point(widget, GTK_WIDGET(root), treepoint, windowpoint)) + if(gtk_widget_compute_point(widget, parent, treepoint, windowpoint)) { *x = (double)windowpoint->x; *y = (double)windowpoint->y;