tabbox: Add desktop window to client list only if "show desktop mode" enabled
Previously, we always added the desktop to the client list when the list was empty. We added it even if the switcher's "show desktop mode" was disabled. Now, we only add the desktop to the client list if the switcher's "show desktop mode" is enabled.
This commit is contained in:
parent
86c6238cfa
commit
a02f09250d
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ void ClientModel::createClientList(bool partialReset)
|
|||
}
|
||||
|
||||
if (tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication
|
||||
&& (tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient || m_mutableClientList.isEmpty())) {
|
||||
&& tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient) {
|
||||
Window *desktopClient = tabBox->desktopClient();
|
||||
if (desktopClient) {
|
||||
m_mutableClientList.append(desktopClient);
|
||||
|
|
Loading…
Reference in a new issue