fix: always show a window in show:apps mode (closes #3950)

This commit is contained in:
lwouis committed 2024-12-08 18:16:15 +01:00
1 parent 68d24919b1
commit ac70fcc5f9
1 file changed
+1 -2
+1 -2
View File
@@ -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 }
}
}