// reverse-iterate the list to check the windows from top-to-bottom.
std::vector<x11::Window>::reverse_iterator iter;
for (iter = windows.rbegin(); iter != windows.rend(); iter++) {
if (IsWindowNamed(*iter) && should_stop_iterating.Run(*iter))
return true;
if (depth < max_depth) {
if (EnumerateChildren(should_stop_iterating, *iter, max_depth, depth + 1))
}
return false;
-