From a0f2d4061267eeff391eab6467709361c47e55cd Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 18:19:13 +0100 Subject: fix(windows): skip special-workspace windows that have no id Hyprland lists a window on a special workspace (e.g. special:dash) with no workspace "id". _state indexed it directly, so one such window raised KeyError on every poll and the Windows tab froze on its last list, with stale previews and a stale active highlight. Co-Authored-By: Claude Opus 5.5 --- deckit/modules/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'deckit/modules') 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, -- cgit v1.2.3