From fbbf96751bfc41e9334aa75368ae3a9923eada72 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 22 Jul 2020 19:09:06 +0200 Subject: [PATCH] Workspace::findToplevel should iterate through allClients Not just x11 ones. --- workspace.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace.cpp b/workspace.cpp index 900a66392c..c6b8828c74 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -1700,7 +1700,7 @@ X11Client *Workspace::findClient(Predicate predicate, xcb_window_t w) const Toplevel *Workspace::findToplevel(std::function func) const { - if (X11Client *ret = Toplevel::findInList(clients, func)) { + if (auto *ret = Toplevel::findInList(m_allClients, func)) { return ret; } if (Unmanaged *ret = Toplevel::findInList(unmanaged, func)) {