From 4ddd4a18cd9f852d4d23510faae31dd0e0380866 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 29 Sep 2025 15:24:18 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml index 2d3aca1b..3ae94346 100644 --- a/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml +++ b/accounts/gkleen@sif/shell/quickshell/WorkspaceSwitcher.qml @@ -7,6 +7,8 @@ import QtQuick.Layouts Row { id: workspaces + required property var screen + property var ignoreWorkspaces: @ignore_workspaces@ height: parent.height @@ -18,7 +20,7 @@ Row { values: { let currWorkspaces = NiriService.workspaces; const ignoreWorkspaces = Array.from(workspaces.ignoreWorkspaces); - currWorkspaces = currWorkspaces.filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); + currWorkspaces = currWorkspaces.filter(ws => ws.output == workspaces.screen.name).filter(ws => ws.is_active || ignoreWorkspaces.every(iws => iws !== ws.name)); currWorkspaces.sort((a, b) => { if (NiriService.outputs?.[a.output]?.logical?.x !== NiriService.outputs?.[b.output]?.logical?.x) return NiriService.outputs?.[a.output]?.logical?.x - NiriService.outputs?.[b.output]?.logical?.x -- cgit v1.2.3