[orca] Update the active window even if the event host application hasn't changed



commit ded5787d1fcdcaae6766a492837001a6cdd8851c
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Thu Feb 7 18:47:33 2019 -0500

    Update the active window even if the event host application hasn't changed

 src/orca/scripts/default.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 541112606..151489f25 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -820,9 +820,9 @@ class Script(script.Script):
         if self.flatReviewContext:
             self.toggleFlatReviewMode()
 
-        if not orca_state.activeWindow \
-           or (event and event.host_application != orca_state.activeScript.app):
-            orca_state.activeWindow = self.utilities.topLevelObject(newLocusOfFocus)
+        topLevel = self.utilities.topLevelObject(newLocusOfFocus)
+        if orca_state.activeWindow != topLevel:
+            orca_state.activeWindow = topLevel
             self.windowActivateTime = time.time()
 
         self.updateBraille(newLocusOfFocus)


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