diff --git a/workspace.cpp b/workspace.cpp index 54a592ed3..ca373e6fb 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1654,6 +1654,15 @@ Toplevel *Workspace::findToplevel(std::function func) co return nullptr; } +bool Workspace::hasClient(const AbstractClient *c) +{ + if (auto cc = dynamic_cast(c)) { + return hasClient(cc); + } + // TODO: test for ShellClient + return false; +} + } // namespace #include "workspace.moc" diff --git a/workspace.h b/workspace.h index a44d88d00..71daad654 100644 --- a/workspace.h +++ b/workspace.h @@ -74,6 +74,7 @@ public: bool workspaceEvent(QEvent*); bool hasClient(const Client*); + bool hasClient(const AbstractClient*); /** * @brief Finds the first Client matching the condition expressed by passed in @p func.