[orca] Ignore spurious focus claim from gnome-shell window after switcher use



commit 625cba48d22ac6bedb619a8924a490b137be3bb8
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Tue Oct 16 12:58:49 2018 +0200

    Ignore spurious focus claim from gnome-shell window after switcher use

 src/orca/scripts/apps/gnome-shell/script.py | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/src/orca/scripts/apps/gnome-shell/script.py b/src/orca/scripts/apps/gnome-shell/script.py
index 862cc825a..4dbaf3d85 100644
--- a/src/orca/scripts/apps/gnome-shell/script.py
+++ b/src/orca/scripts/apps/gnome-shell/script.py
@@ -176,6 +176,11 @@ class Script(clutter.Script):
         if role == pyatspi.ROLE_DIALOG:
             return
 
+        # We're getting a spurious focus claim from the gnome-shell window after
+        # the window switcher is used.
+        if role == pyatspi.ROLE_WINDOW:
+            return
+
         if role == pyatspi.ROLE_MENU_ITEM and not name \
            and not self.utilities.labelsForObject(obj):
             isRealFocus = lambda x: x and x.getRole() == pyatspi.ROLE_SLIDER


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