aboutsummaryrefslogtreecommitdiffstats
path: root/deckit/modules
diff options
context:
space:
mode:
Diffstat (limited to 'deckit/modules')
-rw-r--r--deckit/modules/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/deckit/modules/windows.py b/deckit/modules/windows.py
index edca5b5..343daad 100644
--- a/deckit/modules/windows.py
+++ b/deckit/modules/windows.py
@@ -143,7 +143,7 @@ def _state(run):
wins = sorted(
({"address": c["address"], "id": c.get("stableId", ""), "class": c["class"], "title": c["title"],
"workspace": c["workspace"]["id"], "active": c["address"] == active}
- for c in clients if c.get("mapped", True) and c["workspace"]["id"] > 0),
+ for c in clients if c.get("mapped", True) and c["workspace"].get("id", 0) > 0),
key=lambda w: (w["workspace"], w["class"]))
active_class = next((w["class"] for w in wins if w["active"]), None)
return {"windows": wins,