[orca] Don't announce icon view when the layered pane descends from the desktop



commit f3cc1ec4dbf5213fe1ddf64244788d597227e0e6
Author: Joanmarie Diggs <jdiggs igalia com>
Date:   Wed Jun 6 12:25:54 2018 +0200

    Don't announce icon view when the layered pane descends from the desktop
    
    Note: This requires the desktop to explicitly indicate it is the
    desktop via the is-desktop object attribute.

 src/orca/script_utilities.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
index 7c81716d6..9575f1ecd 100644
--- a/src/orca/script_utilities.py
+++ b/src/orca/script_utilities.py
@@ -1413,6 +1413,8 @@ class Utilities:
             layoutOnly = True
         elif role == pyatspi.ROLE_SCROLL_PANE:
             layoutOnly = True
+        elif role == pyatspi.ROLE_LAYERED_PANE:
+            layoutOnly = self.isDesktop(self.topLevelObject(obj))
         elif role == pyatspi.ROLE_AUTOCOMPLETE:
             layoutOnly = True
         elif role in [pyatspi.ROLE_TEAROFF_MENU_ITEM, pyatspi.ROLE_SEPARATOR]:


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