From 9c78d2832784f8ed8716b97cf4f89c979cefe9ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Fri, 4 Mar 2016 08:37:56 +0100 Subject: [PATCH] Fix Workspace::hasClient(const AbstractClient *c) Properly find AbstractClient. This makes TabBox activate Wayland clients on end. --- workspace.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index a7d574dd45..7547c64938 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1679,8 +1679,11 @@ bool Workspace::hasClient(const AbstractClient *c) { if (auto cc = dynamic_cast(c)) { return hasClient(cc); + } else { + return findAbstractClient([c](const AbstractClient *test) { + return test == c; + }) != nullptr; } - // TODO: test for ShellClient return false; }