From 45486ce515b498d0e30631d4cc63fbb28c5060f7 Mon Sep 17 00:00:00 2001 From: Mikhail Vinogradov Date: Fri, 9 Sep 2022 13:39:14 +0000 Subject: [PATCH] tabbox: don't hide panels when highlighted as the only item in the tabbox When we have 0 opened apps, tab box only shows "Show Desktop". That element is a special entry in the alt+tab list for minimizing all windows. When highlighting it, panels temporarily become hidden, which does not make sense to do when it is the only item in the tab box. In this case, do not temporarily hide the panels. --- src/tabbox/tabboxhandler.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tabbox/tabboxhandler.cpp b/src/tabbox/tabboxhandler.cpp index 987fade739..1e6536e3a6 100644 --- a/src/tabbox/tabboxhandler.cpp +++ b/src/tabbox/tabboxhandler.cpp @@ -169,7 +169,8 @@ void TabBoxHandlerPrivate::updateHighlightWindows() q->elevateClient(lastRaisedClient, w, false); } lastRaisedClient = currentClient; - if (currentClient) { + // don't elevate desktop + if (currentClient && currentClient->internalId() != q->desktopClient().toStrongRef()->internalId()) { q->elevateClient(currentClient, w, true); } } else {