From 466ce70f96f8bdde32260f6951c5cbb62cfc02a7 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Sun, 31 Aug 2025 21:57:00 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml b/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml index d7e8e7c5..57ade488 100644 --- a/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml +++ b/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml @@ -7,10 +7,11 @@ Item { id: activeWindowDisplay required property int maxWidth + required property var screen property var activeWindow: { let currWindowId = Array.from(NiriService.workspaces).find(ws => { - return ws.output === bar.screen.name && ws.is_active; + return ws.output === screen.name && ws.is_active; })?.active_window_id; return currWindowId ? Array.from(NiriService.windows).find(win => win.id == currWindowId) : null; -- cgit v1.2.3