Bug#1099116: libgtk-3: Wrong tooltip position for children in custom windows

Ingo Brückl ib at oddnet.de
Fri Feb 28 14:45:24 GMT 2025


Package: libgtk-3-0t64
Version: 3.24.48-4
Severity: important
Tags: patch upstream

A custom toplevel window derived from GtkWindow can have non-zero x/y
allocations, whereas for a Gtk toplevel window they are usually zero.

Assuming the latter, the translation of the coordinates for tooltip
positioning is relative to 0/0, resulting in incorrect positioning for
custom windows such as in https://bugs.debian.org/1099113.

The allocation of a custom toplevel window is relative to the screen origin,
so the position of the child must also be relative to the screen origin in
order to get the correct coordinates relative to each other.

This bug has been reported upstream, including the attached patch
(https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/8216).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtktooltip.patch
Type: text/x-diff
Size: 803 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-gnome-maintainers/attachments/20250228/b28ad737/attachment.patch>


More information about the pkg-gnome-maintainers mailing list