1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-11 07:52:50 -05:00

fix named workspace icons not filtering by display

This commit is contained in:
bbedward
2025-09-02 21:23:18 -04:00
parent 0872499f36
commit be42280aca
3 changed files with 3 additions and 4 deletions

View File

@@ -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)
}

View File

@@ -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) {

View File

@@ -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