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
$ python3 test-atspi-gedit.py (32, 23)
$ python3 test-atspi-gedit.py (64, 46)
gtk+-3 (probably affects gtk4 as well, but not tested)
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.