Mercurial > dwindows
changeset 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 |
files | gtk4/dw.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;