From 7ca8771d129fbeff7053395eb9e7ef7d5d321176 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Mon, 8 Jan 2018 10:31:16 +0100 Subject: [PATCH] [TabBox] Don't show "Show desktop" window when cycling through application windows When I'm explicitly cycling through the windows of an application it makes no sense to show the "global" desktop window. BUG: 378662 FIXED-IN: 5.12.0 Differential Revision: https://phabricator.kde.org/D9661 --- tabbox/clientmodel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabbox/clientmodel.cpp b/tabbox/clientmodel.cpp index d060c09c5a..79bb6a6f77 100644 --- a/tabbox/clientmodel.cpp +++ b/tabbox/clientmodel.cpp @@ -228,7 +228,8 @@ void ClientModel::createClientList(int desktop, bool partialReset) m_clientList.removeAll(c); m_clientList.prepend(c); } - if (tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient || m_clientList.isEmpty()) { + if (tabBox->config().clientApplicationsMode() != TabBoxConfig::AllWindowsCurrentApplication + && (tabBox->config().showDesktopMode() == TabBoxConfig::ShowDesktopClient || m_clientList.isEmpty())) { QWeakPointer desktopClient = tabBox->desktopClient(); if (!desktopClient.isNull()) m_clientList.append(desktopClient);