comparison gtk4/dw.c @ 2758:e1b5dbec0796

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.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Mon, 03 Jan 2022 15:50:53 +0000
parents b91bc30d0e4a
children cd6a306800f5
comparison
equal deleted inserted replaced
2757:b91bc30d0e4a 2758:e1b5dbec0796
1009 } 1009 }
1010 1010
1011 graphene_point_t *treepoint = graphene_point_init(graphene_point_alloc(), (float)*x, (float)*y); 1011 graphene_point_t *treepoint = graphene_point_init(graphene_point_alloc(), (float)*x, (float)*y);
1012 graphene_point_t *windowpoint = graphene_point_alloc(); 1012 graphene_point_t *windowpoint = graphene_point_alloc();
1013 1013
1014 if(gtk_widget_compute_point(widget, GTK_WIDGET(root), treepoint, windowpoint)) 1014 if(gtk_widget_compute_point(widget, parent, treepoint, windowpoint))
1015 { 1015 {
1016 *x = (double)windowpoint->x; 1016 *x = (double)windowpoint->x;
1017 *y = (double)windowpoint->y; 1017 *y = (double)windowpoint->y;
1018 } 1018 }
1019 1019