Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 830990 | Differences between
and this patch

Collapse All | Expand All

(-)a/ui/platform_window/x11/x11_topmost_window_finder.cc (-3 / +2 lines)
Lines 42-53 bool EnumerateChildren(ShouldStopIteratingCallback should_stop_iterating, Link Here
42
  // reverse-iterate the list to check the windows from top-to-bottom.
42
  // reverse-iterate the list to check the windows from top-to-bottom.
43
  std::vector<x11::Window>::reverse_iterator iter;
43
  std::vector<x11::Window>::reverse_iterator iter;
44
  for (iter = windows.rbegin(); iter != windows.rend(); iter++) {
44
  for (iter = windows.rbegin(); iter != windows.rend(); iter++) {
45
    if (IsWindowNamed(*iter) && should_stop_iterating.Run(*iter))
46
      return true;
47
    if (depth < max_depth) {
45
    if (depth < max_depth) {
48
      if (EnumerateChildren(should_stop_iterating, *iter, max_depth, depth + 1))
46
      if (EnumerateChildren(should_stop_iterating, *iter, max_depth, depth + 1))
49
        return true;
47
        return true;
50
    }
48
    }
49
    if (IsWindowNamed(*iter) && should_stop_iterating.Run(*iter))
50
      return true;
51
  }
51
  }
52
52
53
  return false;
53
  return false;
54
- 

Return to bug 830990