Fix Workspace::hasClient(const AbstractClient *c)
Properly find AbstractClient. This makes TabBox activate Wayland clients on end.
This commit is contained in:
parent
c8b3f71cc6
commit
9c78d28327
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue