From 3714dcc3374227cf7e66d2020f55794c45a7fc06 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Tue, 6 Feb 2024 14:40:35 +0200 Subject: [PATCH] tabbox: Prevent including "show desktop" entry if there are no other windows BUG: 419408 --- src/tabbox/clientmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabbox/clientmodel.cpp b/src/tabbox/clientmodel.cpp index 29f968d5be..02799e5b30 100644 --- a/src/tabbox/clientmodel.cpp +++ b/src/tabbox/clientmodel.cpp @@ -223,7 +223,8 @@ void ClientModel::createClientList(bool partialReset) }); } - if (tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication + if (!m_mutableClientList.isEmpty() + && tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication && tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient) { Window *desktopClient = tabBox->desktopClient(); if (desktopClient) {