From a02f09250d78f98f169a78ac80190d801652bc7c Mon Sep 17 00:00:00 2001 From: Daniel Lipovetsky Date: Sat, 24 Jun 2023 18:19:41 -0700 Subject: [PATCH] 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. --- src/tabbox/clientmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tabbox/clientmodel.cpp b/src/tabbox/clientmodel.cpp index a7a3b171a8..2ff921f347 100644 --- a/src/tabbox/clientmodel.cpp +++ b/src/tabbox/clientmodel.cpp @@ -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);