Commit fbbf9675 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

Workspace::findToplevel should iterate through allClients

Not just x11 ones.
parent a1c0d43d
......@@ -1700,7 +1700,7 @@ X11Client *Workspace::findClient(Predicate predicate, xcb_window_t w) const
Toplevel *Workspace::findToplevel(std::function<bool (const Toplevel*)> 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)) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment