[orca] Only check if a focus claim comes from an iconified window if we have found the window first
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Only check if a focus claim comes from an iconified window if we have found the window first
- Date: Sat, 23 Nov 2013 23:13:25 +0000 (UTC)
commit 4b3a667725adf1fda989d61d6937657238ddac27
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Sat Nov 23 18:11:44 2013 -0500
Only check if a focus claim comes from an iconified window if we have found the window first
src/orca/scripts/default.py | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 7d9c0be..a4fed52 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2402,14 +2402,15 @@ class Script(script.Script):
if not state.contains(pyatspi.STATE_FOCUSED):
return
- try:
- window = self.utilities.topLevelObject(obj)
- iconified = window.getState().contains(pyatspi.STATE_ICONIFIED)
- except:
- return
+ window = self.utilities.topLevelObject(obj)
+ if window:
+ try:
+ iconified = window.getState().contains(pyatspi.STATE_ICONIFIED)
+ except:
+ return
- if iconified:
- return
+ if iconified:
+ return
if obj.childCount:
selectedChildren = self.utilities.selectedChildren(obj)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]