tabbox: Show window switcher only when there are two or more windows
Previously, we showed the window switcher even if there was only one window, or no windows. Now, we show the window switcher only if there are two or more windows. Note that "desktop" counts as a window when the switcher's "show desktop mode" is enabled. BUG: 370396 BUG: 419408
This commit is contained in:
parent
a02f09250d
commit
b31baaf0cd
1 changed files with 7 additions and 0 deletions
|
@ -889,6 +889,13 @@ 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue