Workspace::findToplevel should iterate through allClients

Not just x11 ones.
This commit is contained in:
Aleix Pol 2020-07-22 19:09:06 +02:00
parent a1c0d43deb
commit fbbf96751b

View file

@ -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)) {