[orca] Fix regression resulting from trying to hack around MATE Panel issues.



commit e972636925f46dd124514e81fbf7410d5b8a07a4
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Mar 13 18:28:19 2017 -0400

    Fix regression resulting from trying to hack around MATE Panel issues.

 src/orca/scripts/default.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index fda724b..c66aa05 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2440,8 +2440,8 @@ class Script(script.Script):
         if not state.contains(pyatspi.STATE_FOCUSED):
             return
 
-        window = self.utilities.topLevelObject(obj)
-        if not self.utilities.canBeActiveWindow(window):
+        window, dialog = self.utilities.frameAndDialog(obj)
+        if not self.utilities.canBeActiveWindow(window) and not dialog:
             return
 
         try:


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