tabbox: Don't play "Show Desktop Animation" when activating from tabbox

We already show the desktop preview when the "Show Desktop" item is focused,
so the animation should be considered redundant.
This commit is contained in:
Fushan Wen 2022-02-04 22:14:38 +08:00
parent 0ded63c464
commit 5427b4d4da

View file

@ -1465,7 +1465,7 @@ void TabBox::accept(bool closeTabBox)
Workspace::self()->activateClient(c); Workspace::self()->activateClient(c);
shadeActivate(c); shadeActivate(c);
if (c->isDesktop()) { if (c->isDesktop()) {
Workspace::self()->setShowingDesktop(!Workspace::self()->showingDesktop()); Workspace::self()->setShowingDesktop(!Workspace::self()->showingDesktop(), !m_desktopListConfig.isHighlightWindows());
} }
} }
} }