refactor(src/shared): simplify active_ids set comprehension
This commit is contained in:
1 file changed
+1
-3
@@ -394,9 +394,7 @@ class HyprlandCaptureBackend(CaptureBackend):
|
|||||||
"""Build a ``slurp``-compatible box list of currently visible windows."""
|
"""Build a ``slurp``-compatible box list of currently visible windows."""
|
||||||
from services.modus import get_clients, get_monitors
|
from services.modus import get_clients, get_monitors
|
||||||
|
|
||||||
active_ids = {
|
active_ids = {m.get("activeWorkspace", {}).get("id") for m in get_monitors()}
|
||||||
m.get("activeWorkspace", {}).get("id") for m in get_monitors()
|
|
||||||
}
|
|
||||||
boxes: list[str] = []
|
boxes: list[str] = []
|
||||||
for client in get_clients():
|
for client in get_clients():
|
||||||
if not client.get("mapped", True):
|
if not client.get("mapped", True):
|
||||||
|
|||||||
Reference in new issue
Block a user