Skip to content

a11y: Avoid clobbering AtkUtilClass vmethods

Carlos Garnacho requested to merge wip/carlosg/atk-util-checks into gtk-3-24

In the unlikely case that GTK is "embedded" with other toolkits (hi, Mutter), GTK will clobber the embedder's AtkUtil implementation, leaving its own a11y in a broken state.

AtkUtil is not meant to be overridden by multiple toolkits within a single client, so the most sensible thing to do is stay away from it if that is the case. This helps the embedder's a11y to win.

Fixes Clutter a11y in Mutter after xwayland-on-demand, process startup used to be in a fixed order so that Clutter's a11y would eventually win, but x11/gtk startup is now asynchronous and able to happen at a later point.

Closes: gnome-shell#1687 (closed)

Merge request reports