[orca] Add yet another sanity check for yet another mate-panel-triggered bogus event



commit 87c80ef9a50b3b6c9b246f0bdc4f044227452d9e
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Feb 10 03:27:06 2017 -0500

    Add yet another sanity check for yet another mate-panel-triggered bogus event

 src/orca/scripts/default.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 4914938..2e170ee 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2085,6 +2085,9 @@ class Script(script.Script):
         """Callback for object:state-changed:active accessibility events."""
 
         if event.source.getRole() == pyatspi.ROLE_FRAME:
+            if event.detail1 and not self.utilities.canBeActiveWindow(event.source):
+                return
+
             sourceIsActiveWindow = self.utilities.isSameObject(
                 event.source, orca_state.activeWindow)
 


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