From ac70fcc5f9d2db0c639736b30355d812f746e199 Mon Sep 17 00:00:00 2001 From: lwouis Date: Sun, 8 Dec 2024 18:15:58 +0100 Subject: [PATCH] fix: always show a window in show:apps mode (closes #3950) --- src/logic/Windows.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logic/Windows.swift b/src/logic/Windows.swift index 3767a48d..cc0a01ce 100644 --- a/src/logic/Windows.swift +++ b/src/logic/Windows.swift @@ -284,7 +284,6 @@ class Windows { Windows.list.forEach { (window: Window) in refreshIfWindowShouldBeShownToTheUser(window, screen) } - if Preferences.onlyShowApplications() { // Group windows by application and select the optimal main window let windowsGroupedByApp = Dictionary(grouping: Windows.list) { $0.application.pid } @@ -345,7 +344,7 @@ class Windows { return true } - return sortedWindows.first + return sortedWindows.first { $0.shouldShowTheUser } } }