Accessible object:state-changed:checked event spam for non-visible, non-changed widgets during window activation/deactivation
Steps to reproduce:
- Run and launch this script in gnome-terminal:
#!/usr/bin/python3
import pyatspi
def listener(e):
print(f"{e.source.name} is checked: {e.detail1}")
pyatspi.Registry.registerEventListener(listener, "object:state-changed:checked")
pyatspi.Registry.start()
- Launch gedit
- Alt+Tab or click to switch between the two apps
Expected results: No object:state-changed:checked events would be listed in gnome-terminal
Actual results: Every time gedit gains or loses focus it fires several object:state-changed:checked events for items that are not on screen and whose state hasn't changed. Ditto for gnome-terminal.
@tyrylu: Could you please look into this and ideally make it stop?