mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-06 13:38:28 -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) {
|
function filterCurrentWorkspace(toplevels, screen) {
|
||||||
if (useNiriSorting)
|
if (useNiriSorting)
|
||||||
return NiriService.filterCurrentWorkspace(toplevels, screen);
|
return NiriService.filterCurrentWorkspace(toplevels, screen);
|
||||||
|
if (useMangoSorting)
|
||||||
|
return MangoService.filterCurrentWorkspace(toplevels, screen);
|
||||||
if (isHyprland)
|
if (isHyprland)
|
||||||
return filterHyprlandCurrentWorkspaceSafe(toplevels, screen);
|
return filterHyprlandCurrentWorkspaceSafe(toplevels, screen);
|
||||||
return toplevels;
|
return toplevels;
|
||||||
@@ -506,6 +508,8 @@ Singleton {
|
|||||||
}
|
}
|
||||||
return NiriService.filterCurrentDisplay(toplevels, screenName);
|
return NiriService.filterCurrentDisplay(toplevels, screenName);
|
||||||
}
|
}
|
||||||
|
if (useMangoSorting)
|
||||||
|
return MangoService.filterCurrentDisplay(toplevels, screenName);
|
||||||
if (isHyprland)
|
if (isHyprland)
|
||||||
return filterHyprlandCurrentDisplaySafe(toplevels, screenName);
|
return filterHyprlandCurrentDisplaySafe(toplevels, screenName);
|
||||||
return toplevels;
|
return toplevels;
|
||||||
|
|||||||
@@ -370,6 +370,9 @@ Singleton {
|
|||||||
const screenName = _screenName(screenOrName);
|
const screenName = _screenName(screenOrName);
|
||||||
if (!screenName)
|
if (!screenName)
|
||||||
return toplevels;
|
return toplevels;
|
||||||
|
// Overview reports active_tags=[0], which would match no client tags.
|
||||||
|
if (isOutputInOverview(screenName))
|
||||||
|
return toplevels;
|
||||||
const active = _activeTagSet(screenName);
|
const active = _activeTagSet(screenName);
|
||||||
if (active.size === 0)
|
if (active.size === 0)
|
||||||
return toplevels;
|
return toplevels;
|
||||||
|
|||||||
Reference in New Issue
Block a user