Without pretendingn to activate the Window, Qt will not send
the right signals for accessibility, thus screen readers not working.
Details
Diff Detail
- Repository
- R108 KWin
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Would you mind testing if replacing the following also works with Orca?
(sorry, I don't have a setup where I can right now)
QWindowSystemInterface::handleWindowActivated(w)
We ideally don't want to risk changing anything on the X stack there's potential for side effects, and it won't work at all on QtWayland.
I believe this is the important line that your code will be triggering which we can call directly.
This is problematic: KWin cannot activate it's own windows and trying to do so is undefined behavior. We need a way to have this working without going into the API which will do X11 stuff as David says.
Thanks for coming up with the idea :) Now it will be just the second part... figuring out a nice way to trick the qml parts to have an active focus around.