fix accessibility on XCB when running as root
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Tue, 24 Oct 2023 11:07:10 +0000 (14:07 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Tue, 24 Oct 2023 11:07:10 +0000 (14:07 +0300)
commitfb35cdb3c0cb244423ff0314c0129387d86cf1e7
treef566de81ac0ec66b0bca6690bbb21dbfde3f59bd
parent5f5c6467f8c340b61c0da0dbf79391863af2b300
fix accessibility on XCB when running as root

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=db346e711c9af505
Bug: https://bugs.debian.org/1033995
Last-Update: 2023-04-15

Accessibility actually works when running applications as root, but we
would never properly connect, since the enabledChanged signal would be
emitted from the constructor in this case. So after connecting the
signal, check the value by hand to make sure not to miss the
notification.

Only applications running as root would be affected, because all other
applications would go through the asynchronous pattern of getting the
bus address from dbus instead.

Gbp-Pq: Name a11y_root.diff
src/platformsupport/linuxaccessibility/bridge.cpp