GNOME Bugzilla – Bug 787592
can't access object content and highlight without compositor
Last modified: 2019-04-01 15:28:33 UTC
Created attachment 359656 [details] proposed fix Hello, My desktop doesn't include a compositor. When I click on an object in the at-spi tree, I get this in the accerciser output: Traceback (most recent call last):
+ Trace 237951
self.node.update(new_acc)
self.highlight()
2.0, 0)
self.root = gdk.get_default_root_window().get_image(
and I don't get attributes, content, etc. of the object. Indeed, get_image is something that got removed between gtk+2.0 and gtk+3.0, it seems the migration in accerciser didn't fix that part, probably because the maintainer does use a compositor. Basically, everything used here was removed in gtk+3.0, and cairo is supposed to be used instead. But « Cairo will always use GDK_INCLUDE_INFERIORS on sources and masks and GDK_CLIP_BY_CHILDREN on targets. » So basically we can't use gtk/gdk to achieve highlighting. In the attached patch, I just use an X11 implementation. Of course it won't work under Wayland, but AIUI Wayland will always have a compositor, so that's not a problem. Samuel
Created attachment 359662 [details] [review] proposed fix Of course, the last-minute change I made before submitting did break my patch :) Here is the fixed version.
Ping? This issue is making accerciser way less usable since one does not get a quick feedback as to what is being inspected.
(In reply to Samuel Thibault from comment #2) > Ping? This issue is making accerciser way less usable since one does not get > a quick feedback as to what is being inspected. I assume that Javier no longer reviews patches so if your patch is reasonable you should merge it yourself. Best regards, Alex.
This was commited as 1da6d1bcb1ffd8b7e330e93c9a77ac690f0caba3