Tooltips displaced with 200% scaling (Windows, X11)
Steps to reproduce
- Have 200% scaling enabled on your only monitor via Windows 11 resolution settings or Gnome on Xorg settings. (not an issue with Gnome on wayland)
- Open gtk3-demo or gtk4-demo
- run Cursors demo
- hover over an icon button
Alternatively, try Inkscape with the tools to the left (issue originally reported in https://gitlab.com/inkscape/inbox/-/issues/7663)
Current behavior
The tooltips are displaced downwards a bit too much (see screenshots below)
Expected outcome
Similar behavior to just using GDK_SCALE=2 (where the tooltip is closer to the mouse).
- gtk3 on Windows, gtk3/gtk4 on X11 looks displaced.
- gtk3/gtk4 on Wayland and gtk4-demo on Windows look correct.
Version information
- gtk3 1:3.24.34+r156+g812b3930-1
- Arch OS (VM), GNOME 42.4
- gtk4 1:4.8.1-1
- Arch OS (VM), GNOME 42.4
- Inkscape 1.2.1, gtk3 3.24.34; Inkscape 1.1.2, gtk3 3.24.31
- Windows 11 21H2 10.0.22000 N/A Build 22000 (also was originally reported in https://gitlab.com/inkscape/inkscape/-/issues/3858 on Windows 10)
- mingw-w64-x86_64-gtk3 3.24.34+r156+g812b3930-1, gtk4 equivalent is 4.8.1-1
- same Windows 11 (21H2 10.0.22000 N/A Build 22000)
Additional information
gtk3-demo, hovering over the bottom right of the button on Arch (Gnome on X11)
200% scaling in settings | 100% scaling, but GDK_SCALE=2 |
---|---|
same but with gtk4-demo (note that the bottom-right-most point that generates the tooltip is actually further inside the button)
200% scaling in settings | 100% scaling, but GDK_SCALE=2 |
---|---|
Originally reported in https://gitlab.com/inkscape/inkscape/-/issues/3858