fix accessibility on XCB when running as root
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Mon, 24 Mar 2025 12:42:48 +0000 (15:42 +0300)
committerDmitry Shachnev <mitya57@debian.org>
Mon, 24 Mar 2025 12:42:48 +0000 (15:42 +0300)
commitb9ae735e56bcf502b319da5b5f4d8ef75230ac94
treeff9ed646e3eb29942761c740b4fb2001990d5e80
parentde21977a0f2d169d5a4e50a7b240f57010731452
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