Skip to content

Commit 968ceeb

Browse files
committed
fix active monitor test
1 parent a391bb9 commit 968ceeb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/wlr_layout_ui/screens.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def load_from_hyprctl():
6565
current_screen = Screen(
6666
uid=monitor["name"],
6767
name=monitor["description"],
68-
active=monitor["activeWorkspace"]["id"] >= 0,
68+
active=bool(
69+
monitor["activeWorkspace"]["name"]
70+
), # NOTE: move to "disabled" later
6971
scale=monitor["scale"],
7072
position=(monitor["x"], monitor["y"]),
7173
available=modes,

0 commit comments

Comments
 (0)