Fix Workspace::hasClient(const AbstractClient *c)

Properly find AbstractClient. This makes TabBox activate Wayland clients
on end.
This commit is contained in:
Martin Gräßlin 2016-03-04 08:37:56 +01:00
parent c8b3f71cc6
commit 9c78d28327

View file

@ -1679,8 +1679,11 @@ bool Workspace::hasClient(const AbstractClient *c)
{ {
if (auto cc = dynamic_cast<const Client*>(c)) { if (auto cc = dynamic_cast<const Client*>(c)) {
return hasClient(cc); return hasClient(cc);
} else {
return findAbstractClient([c](const AbstractClient *test) {
return test == c;
}) != nullptr;
} }
// TODO: test for ShellClient
return false; return false;
} }