summaryrefslogtreecommitdiff
path: root/www-client/chromium/files/chromium-99-dnd-3381679.patch
diff options
context:
space:
mode:
Diffstat (limited to 'www-client/chromium/files/chromium-99-dnd-3381679.patch')
-rw-r--r--www-client/chromium/files/chromium-99-dnd-3381679.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/www-client/chromium/files/chromium-99-dnd-3381679.patch b/www-client/chromium/files/chromium-99-dnd-3381679.patch
new file mode 100644
index 0000000..06f1736
--- /dev/null
+++ b/www-client/chromium/files/chromium-99-dnd-3381679.patch
@@ -0,0 +1,19 @@
+diff --git a/ui/platform_window/x11/x11_topmost_window_finder.cc b/ui/platform_window/x11/x11_topmost_window_finder.cc
+index e20bf0abf..c9c672c60 100644
+--- a/ui/platform_window/x11/x11_topmost_window_finder.cc
++++ b/ui/platform_window/x11/x11_topmost_window_finder.cc
+@@ -42,12 +42,12 @@ bool EnumerateChildren(ShouldStopIteratingCallback should_stop_iterating,
+ // 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 true;
+ }
++ if (IsWindowNamed(*iter) && should_stop_iterating.Run(*iter))
++ return true;
+ }
+
+ return false;