From aff71d6f9f3cc5c9217ee0cb4fa6c66f978e2b36 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 2 Sep 2025 13:27:08 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/Services/NiriService.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'accounts/gkleen@sif/shell/quickshell') 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 { }); } function eventWindowOpenedOrChanged(data) { - root.windows = Array.from(root.windows).filter(win => win.id !== data.window.id).concat([data.window]); + root.windows = Array.from(root.windows).map(win => { + if (data.window.is_focused) + win.is_focused = false; + return win; + }).filter(win => win.id !== data.window.id).concat([data.window]); } function eventWindowClosed(data) { root.windows = Array.from(root.windows).filter(win => win.id !== data.id); -- cgit v1.2.3