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
+4 -4
View File
@@ -734,12 +734,12 @@ Singleton {
});
}
function switchToWorkspace(workspaceIndex) {
function switchToWorkspace(workspaceId) {
return send({
"Action": {
"FocusWorkspace": {
"reference": {
"Index": workspaceIndex
"Id": workspaceId
}
}
}
@@ -1449,13 +1449,13 @@ Singleton {
});
}
function moveWorkspaceToIndex(workspaceIdx, targetIndex) {
function moveWorkspaceToIndex(workspaceId, targetIndex) {
return send({
"Action": {
"MoveWorkspaceToIndex": {
"index": targetIndex,
"reference": {
"Index": workspaceIdx
"Id": workspaceId
}
}
}