Created attachment 181080 [details]
screencast demonstrating the issue
Accerciser (a tool to retrieve a11y-related information) has a feature to highlight the item currently selected item in its tree view of the a11y hierarchy. For this, it uses the coordinates as reported by the corresponding a11y object.
However, when using this with the qt5/kf5/qt6 VCL plugins on Linux, the area highlighted by Accerciser is often incorrect, s. attached screencast.
steps to reproduce:
0) use one of the qt5/q6/kf5 VCL plugins on Linux (e.g. by setting env variable SAL_USE_VCLPLUGIN=kf5)
1) start Accerciser
2) start LO Writer
3) click through the a11y hierarchy for Writer
4) observe what area is highlighted in red
The highlighted area often doesn't correspond to the one at which the UI element actually is, as can be seen in the attached screencast. (First 6 seconds in the video show correct behavior, but for all subsequent elements, it's wrong.)
In many cases, the highlighted area is even outside of the LibreOffice window altogether.
Version: 184.108.40.206.alpha0+ / LibreOffice Community
Build ID: 870452546a56ce635f36247c44aee6068d70c053
CPU threads: 4; OS: Linux 5.18; UI render: default; VCL: qt6 (qfont+xcb)
Locale: en-GB (en_GB.UTF-8); UI: en-US
Pending fix: https://gerrit.libreoffice.org/c/core/+/136781
Michael Weghorn committed a patch related to this issue.
It has been pushed to "master":
tdf#149816 qt a11y: Report position in screen coordinates
It will be available in 7.5.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.