1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-02 11:38:30 -04:00

mango: add specific sorting for widgets using data from mango IPC

fixes #649
This commit is contained in:
bbedward
2026-07-03 23:08:44 -04:00
parent 8dadf73d52
commit ebad8e2dda
2 changed files with 7 additions and 0 deletions
@@ -485,6 +485,8 @@ Singleton {
function filterCurrentWorkspace(toplevels, screen) {
if (useNiriSorting)
return NiriService.filterCurrentWorkspace(toplevels, screen);
if (useMangoSorting)
return MangoService.filterCurrentWorkspace(toplevels, screen);
if (isHyprland)
return filterHyprlandCurrentWorkspaceSafe(toplevels, screen);
return toplevels;
@@ -506,6 +508,8 @@ Singleton {
}
return NiriService.filterCurrentDisplay(toplevels, screenName);
}
if (useMangoSorting)
return MangoService.filterCurrentDisplay(toplevels, screenName);
if (isHyprland)
return filterHyprlandCurrentDisplaySafe(toplevels, screenName);
return toplevels;
+3
View File
@@ -370,6 +370,9 @@ Singleton {
const screenName = _screenName(screenOrName);
if (!screenName)
return toplevels;
// Overview reports active_tags=[0], which would match no client tags.
if (isOutputInOverview(screenName))
return toplevels;
const active = _activeTagSet(screenName);
if (active.size === 0)
return toplevels;