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:
@@ -469,8 +469,7 @@ Singleton {
|
|||||||
if (typeof NiriService === "undefined" || !CompositorService.isNiri)
|
if (typeof NiriService === "undefined" || !CompositorService.isNiri)
|
||||||
return namedWorkspaces
|
return namedWorkspaces
|
||||||
|
|
||||||
for (var i = 0; i < NiriService.allWorkspaces.length; i++) {
|
for (const ws of NiriService.allWorkspaces) {
|
||||||
var ws = NiriService.allWorkspaces[i]
|
|
||||||
if (ws.name && ws.name.trim() !== "") {
|
if (ws.name && ws.name.trim() !== "") {
|
||||||
namedWorkspaces.push(ws.name)
|
namedWorkspaces.push(ws.name)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -311,7 +311,7 @@ Rectangle {
|
|||||||
if (CompositorService.isNiri) {
|
if (CompositorService.isNiri) {
|
||||||
for (var i = 0; i < NiriService.allWorkspaces.length; i++) {
|
for (var i = 0; i < NiriService.allWorkspaces.length; i++) {
|
||||||
var ws = NiriService.allWorkspaces[i]
|
var ws = NiriService.allWorkspaces[i]
|
||||||
if (ws.idx + 1 === modelData)
|
if (ws.idx + 1 === modelData && ws.output === root.screenName)
|
||||||
return ws
|
return ws
|
||||||
}
|
}
|
||||||
} else if (CompositorService.isHyprland) {
|
} else if (CompositorService.isHyprland) {
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ Rectangle {
|
|||||||
layer.enabled: true
|
layer.enabled: true
|
||||||
layer.effect: MultiEffect {
|
layer.effect: MultiEffect {
|
||||||
shadowEnabled: true
|
shadowEnabled: true
|
||||||
shadowColor: Theme.shadowDark
|
shadowColor: Theme.shadowStrong
|
||||||
shadowBlur: 0.8
|
shadowBlur: 0.8
|
||||||
shadowHorizontalOffset: 0
|
shadowHorizontalOffset: 0
|
||||||
shadowVerticalOffset: 4
|
shadowVerticalOffset: 4
|
||||||
|
|||||||
Reference in New Issue
Block a user