[orca] Only change the locusOfFocus in onActiveChanged if not in the current window



commit c9736914bd20f2f838375835130edb3165664a0a
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Fri Nov 27 10:41:09 2015 -0500

    Only change the locusOfFocus in onActiveChanged if not in the current window

 src/orca/scripts/default.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index a40970b..0c1baa7 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2107,7 +2107,7 @@ class Script(script.Script):
                 orca_state.activeWindow = None
                 return
 
-            if event.detail1:
+            if event.detail1 and not event.source == orca_state.activeWindow:
                 msg = "DEFAULT: Updating active window to event source."
                 debug.println(debug.LEVEL_INFO, msg, True)
                 self.windowActivateTime = time.time()


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