-
Notifications
You must be signed in to change notification settings - Fork 92
Simple headless example for Unix #634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hey @DataTriny no rush but I just wanted to check if this example still reasonable or would you like any edits? I think it would be great to add a few Unix examples slowly but surely. Thanks! |
|
Hi @C-Loftus and sorry for not replying earlier. As I said in #633, I'd be willing to take an example demonstrating integration with Wayland or X11, but not a headless program. Also keep in mind that AccessKit audience is primarily cross-platform UI toolkit developers, our mission is not to document AT-SPI. Examples for the Unix adapter should focus on showing the pattern to integrate with the windowing layer, with as little distraction as possible. Our Windows and winit examples only contain a very basic AccessKit tree and it is on purpose. I would expect the same here. Thanks. |
|
Actually I already have a X11 example somewhere that is nearly complete. Would you be interested in offering one for Wayland? |
|
Thank you for your response.
That makes sense and I think I am on the same page. I don't believe I have any comments related to AT-SPI in here but if I do and you would like any changes in that front, let me know and I'd be happy to edit. My rationale for first contributing a headless example was that:
Some of my initial motivation for this example came from looking through the niri codebase but being confused on what was coming from other libraries vs accesskit.
I am certainly also in favor of x11/wayland examples and would be happy to look into wayland when I have some time. |
As mentioned in #633 I think it is useful to add a few extra examples for Unix / atspi that work with Orca
This PR adds a simple headless example that shows how to present an announcement to the user.
It is deliberately very simple and contains lots of comments. This example was tested and works with Orca on both Wayland and X11. For future reference I am using
Orca version 49.beta (rev ba5093db7), AT-SPI2 version: 2.52.0, Session: x11 ubuntu-xorgI am contributing this first before any other more complicated x11 or wayland examples to show very clearly the minimum amount of code needed for Orca to work with accesskit and to keep it as simple as possible without bringing in x11 or wayland specific code. The latter could be done in a follow up PR.