diff options
Diffstat (limited to 'accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml')
| -rw-r--r-- | accounts/gkleen@sif/shell/quickshell/ActiveWindowDisplay.qml | 3 |
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; |
