Revert "tabbox: Show window switcher only when there are two or more windows"

This reverts commit b31baaf0cd.

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
This commit is contained in:
Vlad Zahorodnii 2024-02-06 14:18:11 +02:00
parent 2556378dfa
commit 8086707d1c

View file

@ -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;
}