From be42280aca33dc179a829391b391f2d7a6f29afd Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 2 Sep 2025 21:23:18 -0400 Subject: [PATCH] fix named workspace icons not filtering by display --- Common/SettingsData.qml | 3 +-- Modules/TopBar/WorkspaceSwitcher.qml | 2 +- Widgets/DankIconPicker.qml | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Common/SettingsData.qml b/Common/SettingsData.qml index 1046cbab..57b46e74 100644 --- a/Common/SettingsData.qml +++ b/Common/SettingsData.qml @@ -469,8 +469,7 @@ Singleton { if (typeof NiriService === "undefined" || !CompositorService.isNiri) return namedWorkspaces - for (var i = 0; i < NiriService.allWorkspaces.length; i++) { - var ws = NiriService.allWorkspaces[i] + for (const ws of NiriService.allWorkspaces) { if (ws.name && ws.name.trim() !== "") { namedWorkspaces.push(ws.name) } diff --git a/Modules/TopBar/WorkspaceSwitcher.qml b/Modules/TopBar/WorkspaceSwitcher.qml index 23245690..9ee72845 100644 --- a/Modules/TopBar/WorkspaceSwitcher.qml +++ b/Modules/TopBar/WorkspaceSwitcher.qml @@ -311,7 +311,7 @@ Rectangle { if (CompositorService.isNiri) { for (var i = 0; i < NiriService.allWorkspaces.length; i++) { var ws = NiriService.allWorkspaces[i] - if (ws.idx + 1 === modelData) + if (ws.idx + 1 === modelData && ws.output === root.screenName) return ws } } else if (CompositorService.isHyprland) { diff --git a/Widgets/DankIconPicker.qml b/Widgets/DankIconPicker.qml index fc26cd8c..8327ece7 100644 --- a/Widgets/DankIconPicker.qml +++ b/Widgets/DankIconPicker.qml @@ -160,7 +160,7 @@ Rectangle { layer.enabled: true layer.effect: MultiEffect { shadowEnabled: true - shadowColor: Theme.shadowDark + shadowColor: Theme.shadowStrong shadowBlur: 0.8 shadowHorizontalOffset: 0 shadowVerticalOffset: 4