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:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user