diff options
Diffstat (limited to 'accounts/gkleen@sif/shell')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml index 179b55e0..af522ec4 100644 --- a/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml +++ b/accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | |||
@@ -160,7 +160,11 @@ Singleton { | |||
160 | }); | 160 | }); |
161 | } | 161 | } |
162 | function eventWindowOpenedOrChanged(data) { | 162 | function eventWindowOpenedOrChanged(data) { |
163 | root.windows = Array.from(root.windows).filter(win => win.id !== data.window.id).concat([data.window]); | 163 | root.windows = Array.from(root.windows).map(win => { |
164 | if (data.window.is_focused) | ||
165 | win.is_focused = false; | ||
166 | return win; | ||
167 | }).filter(win => win.id !== data.window.id).concat([data.window]); | ||
164 | } | 168 | } |
165 | function eventWindowClosed(data) { | 169 | function eventWindowClosed(data) { |
166 | root.windows = Array.from(root.windows).filter(win => win.id !== data.id); | 170 | root.windows = Array.from(root.windows).filter(win => win.id !== data.id); |