1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-05-15 08:42:47 -04:00

workspaces/niri: fix scrolling to use ID instead of Index

fixes #2212
This commit is contained in:
bbedward
2026-05-14 10:02:34 -04:00
parent a33c7e0250
commit 79fe956058
3 changed files with 14 additions and 14 deletions
@@ -267,10 +267,10 @@ Item {
if (nextIndex !== validIndex) {
const nextWorkspace = realWorkspaces[nextIndex];
if (!nextWorkspace || nextWorkspace.idx === undefined) {
if (!nextWorkspace || nextWorkspace.id === undefined) {
return;
}
NiriService.switchToWorkspace(nextWorkspace.idx);
NiriService.switchToWorkspace(nextWorkspace.id);
}
} else if (CompositorService.isHyprland) {
const currentWs = getCurrentWorkspace();