[orca] Tweak for the fake-window-event removal: Only present the window if we have no locus of focus.



commit 9e0cf9c46144233d73990a5107337e64986aa609
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Mon Dec 26 21:19:46 2011 -0500

    Tweak for the fake-window-event removal: Only present the window if we have no locus of focus.

 src/orca/orca.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/orca/orca.py b/src/orca/orca.py
index dfe915d..a6912f3 100644
--- a/src/orca/orca.py
+++ b/src/orca/orca.py
@@ -1823,8 +1823,8 @@ def main():
     script = orca_state.activeScript
     if script:
         window = script.utilities.activeWindow()
-        if window:
-            setLocusOfFocus(None, window, force=True)
+        if window and not orca_state.locusOfFocus:
+            setLocusOfFocus(None, window)
 
     # Check to see if the user wants the configuration GUI. It's
     # done here so that the user's existing preferences can be used



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