[orca] Event Manager: Add window:activate to spam-clearing triggers



commit 5aa81b18dec16a7b04037ee769b7816dcfce7ab6
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Sun Jun 13 18:54:08 2021 +0200

    Event Manager: Add window:activate to spam-clearing triggers
    
    If we're spammed and the active window changes, dump the junk so we
    present the window change more quickly.

 src/orca/event_manager.py | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 37b20df8d..f58009652 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -766,6 +766,9 @@ class EventManager:
         if event.type.startswith("object:state-changed:focused"):
             return event.detail1
 
+        if event.type.startswith("window:activate"):
+            return True
+
         return False
 
     def _pruneEventsDuringFlood(self):


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]