fix(workspace): use tag command instead of view to prevent window moving

This commit is contained in:
atheeq-rhxn
2025-11-13 21:21:15 +05:30
parent 8ba0a0a51f
commit 3a80389ca4
+2 -1
View File
@@ -40,6 +40,7 @@ Item {
},
action: {
view: ["mmsg", "-d", "view"],
tag: ["mmsg", "-t"],
focusMaster: ["mmsg", "-d", "focusmaster"],
killClient: ["mmsg", "-d", "killclient"],
toggleOverview: ["mmsg", "-d", "toggleoverview"],
@@ -308,7 +309,7 @@ Item {
function switchToWorkspace(workspace) {
try {
const tagId = workspace.idx || workspace.id || defaultWorkspaceId
const command = mmsgCommands.action.view.concat([tagId.toString()])
const command = mmsgCommands.action.tag.concat([tagId.toString()])
Quickshell.execDetached(command)
Logger.d("MangoService", `Switching to workspace ${tagId}`)
} catch (e) {