summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2025-08-31 21:57:00 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2025-08-31 21:57:00 +0200
commit466ce70f96f8bdde32260f6951c5cbb62cfc02a7 (patch)
tree3d3120f6a1ace487d2db5a024411a467d55b9632 /accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml
parent828893e930886872fcf612bc8958d33fee73b5df (diff)
downloadnixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.gz
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.bz2
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.tar.xz
nixos-466ce70f96f8bdde32260f6951c5cbb62cfc02a7.zip
...
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml')
-rw-r--r--accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml3
1 files changed, 2 insertions, 1 deletions
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 {
7 id: activeWindowDisplay 7 id: activeWindowDisplay
8 8
9 required property int maxWidth 9 required property int maxWidth
10 required property var screen
10 11
11 property var activeWindow: { 12 property var activeWindow: {
12 let currWindowId = Array.from(NiriService.workspaces).find(ws => { 13 let currWindowId = Array.from(NiriService.workspaces).find(ws => {
13 return ws.output === bar.screen.name && ws.is_active; 14 return ws.output === screen.name && ws.is_active;
14 })?.active_window_id; 15 })?.active_window_id;
15 16
16 return currWindowId ? Array.from(NiriService.windows).find(win => win.id == currWindowId) : null; 17 return currWindowId ? Array.from(NiriService.windows).find(win => win.id == currWindowId) : null;