[orca] Sanity check windows which claim to be active
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Sanity check windows which claim to be active
- Date: Tue, 7 Feb 2017 20:02:01 +0000 (UTC)
commit ae046dc2f7a3fe344006e1240c6be359830abf64
Author: Joanmarie Diggs <jdiggs igalia com>
Date: Tue Feb 7 15:00:24 2017 -0500
Sanity check windows which claim to be active
mate-panel is why we cannot have nice things
src/orca/scripts/default.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/orca/scripts/default.py b/src/orca/scripts/default.py
index 5893d2c..c07e274 100644
--- a/src/orca/scripts/default.py
+++ b/src/orca/scripts/default.py
@@ -2703,6 +2703,9 @@ class Script(script.Script):
- event: the Event
"""
+ if not self.utilities.canBeActiveWindow(event.source):
+ return
+
if self.utilities.isSameObject(event.source, orca_state.activeWindow):
msg = "DEFAULT: Event is for active window."
debug.println(debug.LEVEL_INFO, msg, True)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]