From 41766d3594e5b02410a67a0cff29e519625222da Mon Sep 17 00:00:00 2001 From: Kevin Ottens Date: Fri, 5 Mar 2021 14:07:23 +0100 Subject: [PATCH] Activities now accept AbstractClient, no need to downcast Which means now it doesn't need to be limited to X11Clients only. --- src/useractions.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/useractions.cpp b/src/useractions.cpp index 6954cce728..fc1dbe4a43 100644 --- a/src/useractions.cpp +++ b/src/useractions.cpp @@ -789,12 +789,7 @@ void UserActionsMenu::slotToggleOnActivity(QAction *action) return; } - X11Client *c = dynamic_cast(m_client.data()); - if (!c) { - return; - } - - Activities::self()->toggleClientOnActivity(c, activity, false); + Activities::self()->toggleClientOnActivity(m_client, activity, false); if (m_activityMenu && m_activityMenu->isVisible() && m_activityMenu->actions().count()) { const bool isOnAll = m_client->isOnAllActivities(); m_activityMenu->actions().at(0)->setChecked(isOnAll);