mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-28 15:32:50 -05:00
compositor service & use toplevels instead of niri data
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user