Index: src/orca/orca.py
===================================================================
--- src/orca/orca.py	(revision 3912)
+++ src/orca/orca.py	(working copy)
@@ -178,6 +178,13 @@
     if obj == orca_state.locusOfFocus:
         return
 
+    # If this event is not for the currently active script, then just return.
+    #
+    currentApp = orca_state.activeScript.app.name
+    if currentApp != event.host_application.name and \
+       currentApp != event.source.getApplication().name:
+        return
+
     oldLocusOfFocus = orca_state.locusOfFocus
     try:
         # Just to see if we have a valid object.
