From 8086707d1c1799678f445da1fc4029b40e167981 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 6 Feb 2024 14:18:11 +0200 Subject: [PATCH] Revert "tabbox: Show window switcher only when there are two or more windows" This reverts commit b31baaf0cd33b0e4469e67a804d2686b13f41b7a. It's still a good idea to show the task switcher even if there's only one window in order to provide the user feedback about their action. Since the task switcher is not shown when there's only one window, it can be confusing and lead to thinking that the task switcher is broken. It also fixes a regression which prevents alt-tabbing to the only remaining minimized window. BUG: 480940 CCBUG: 419408 --- src/tabbox/tabbox.cpp | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/tabbox/tabbox.cpp b/src/tabbox/tabbox.cpp index 0082c1d5f6..60b493cf3f 100644 --- a/src/tabbox/tabbox.cpp +++ b/src/tabbox/tabbox.cpp @@ -889,13 +889,6 @@ bool TabBox::startKDEWalkThroughWindows(TabBoxMode mode) m_noModifierGrab = false; setMode(mode); reset(); - - // Show the switcher only when there are two or more clients. - if (m_tabBox->clientList().size() <= 1) { - close(); - return false; - } - return true; }