1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 07:22:50 -05:00

compositor service & use toplevels instead of niri data

This commit is contained in:
bbedward
2025-08-20 17:31:10 -04:00
parent 835d46a7af
commit be4c09e56d
13 changed files with 236 additions and 537 deletions

View File

@@ -381,7 +381,7 @@ Singleton {
}
function hasNamedWorkspaces() {
if (typeof NiriService === "undefined" || !NiriService.niriAvailable)
if (typeof NiriService === "undefined" || !CompositorService.isNiri)
return false
for (var i = 0; i < NiriService.allWorkspaces.length; i++) {
@@ -394,7 +394,7 @@ Singleton {
function getNamedWorkspaces() {
var namedWorkspaces = []
if (typeof NiriService === "undefined" || !NiriService.niriAvailable)
if (typeof NiriService === "undefined" || !CompositorService.isNiri)
return namedWorkspaces
for (var i = 0; i < NiriService.allWorkspaces.length; i++) {

View File

@@ -625,6 +625,7 @@ Singleton {
}
}
Component.onCompleted: {
if (typeof Colors !== "undefined")
Colors.colorsUpdated.connect(root.onColorsUpdated)