diff --git a/tabbox/tabbox.cpp b/tabbox/tabbox.cpp index ce825bd3fd..2df33463f0 100644 --- a/tabbox/tabbox.cpp +++ b/tabbox/tabbox.cpp @@ -200,7 +200,7 @@ bool TabBoxHandlerImpl::checkApplications(TabBoxClient* client) const continue; } if ((c = dynamic_cast< TabBoxClientImpl* >(client.data()))) { - if (c->client()->resourceClass() == current->resourceClass()) { + if (AbstractClient::belongToSameApplication(c->client(), current)) { return false; } } @@ -212,7 +212,7 @@ bool TabBoxHandlerImpl::checkApplications(TabBoxClient* client) const return false; } if ((c = dynamic_cast< TabBoxClientImpl* >(pointer.data()))) { - if (c->client()->resourceClass() == current->resourceClass()) { + if (AbstractClient::belongToSameApplication(c->client(), current)) { return true; } }