Widget extents reported through the accessibility interface are not scaled
Steps to reproduce
- Run "gedit" on a HiDPI display (scale 2) on Wayland (easier) without the side panel
- Save and run the attached Python example test-atspi-gedit.py
Current behavior
$ python3 test-atspi-gedit.py
(32, 23)
Expected outcome
$ python3 test-atspi-gedit.py
(64, 46)
Version information
gtk+-3 (probably affects gtk4 as well, but not tested)
Additional information
at-spi uses atk which in turns uses gtk+ a11y code to return the widget size and position. However, these are unscaled, so when using a HiDPI output with a scale of 2, the size/coordinates do not match the actual widget size and location, which in turn can be problematic with tools such as "dogtail" for UI automation.
Edited by Olivier Fourdan