Commit b19c3c1c authored by Martin Flöser's avatar Martin Flöser

Drop no longer needed cast to Client in TabGroup related code

Differential Revision: https://phabricator.kde.org/D12730
parent b6befb4e
......@@ -389,7 +389,7 @@ void Workspace::takeActivity(AbstractClient* c, ActivityFlags flags)
flags &= ~ActivityFocus;
}
if (c->tabGroup() && c->tabGroup()->current() != c)
c->tabGroup()->setCurrent(dynamic_cast<Client*>(c));
c->tabGroup()->setCurrent(c);
if (!c->isShown(true)) { // shouldn't happen, call activateClient() if needed
qCWarning(KWIN_CORE) << "takeActivity: not shown" ;
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment