Re: A11y always-on in gnome-shell and GTK+ (was Re: A11y always-on in gnome-shell)

Mike Gorse <[email protected]>
Newsgroups gmane.comp.gnome.accessibility.devel,gmane.comp.gnome.desktop
Message-ID <[email protected]>
On Mon, 18 Jun 2012, Piñeiro wrote:

> On 06/15/2012 06:52 PM, Bastien Nocera wrote:
>> The next step would be to make the atk-bridge not snoop on keys when
>> there are no clients, so as to reduce the overhead.
>
> Strange, I thought that it was already the case, atk-bridge not
> registering to any event (key snooping included) unless one client is
> listening.
>
> Mike, could you confirm that?

It probably should be doing this, but, alas, it isn't. Right now 
atk-bridge has no way of knowing whether any keystroke listeners are 
active. I think we would want to do one of the following:

- add a DBus property that indicates whether any keystroke listeners are 
present, and have at-spi2-registryd send a PropertiesChanged signal as 
appropriate when this changes.

- Have at-spi2-registryd send signals when a listener is added or removed. 
Add a method to retrieve the currently-active listeners. Perhaps have 
atk-bridge send keystroke notifications to the listening applications 
directly rather than at-spi2-registryd being in the middle.

- Take at-spi2-registryd out of the business of handling listeners 
altogether. When a new application starts, have libatspi somehow notify it 
if a keystroke listener is present.

The first option seems easiest, and I'm tempted to go with it since I 
think that the goal is to eliminate these listeners in the medium to long 
term.

-Mike

_______________________________________________
gnome-accessibility-devel mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-accessibility-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.