diff options
author | Chris Xiong <chirs241097@gmail.com> | 2022-01-11 18:34:55 -0500 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2022-01-11 18:34:55 -0500 |
commit | d18188f505992c5542ce744be14e00e78afd3e52 (patch) | |
tree | e2ffdaea4bdc765de139f4617ddfc0ca81600a11 /www-client/chromium/files | |
parent | c6e0e5f2d3887c591a4fb2434a575c09dc630696 (diff) | |
download | ppo-d18188f505992c5542ce744be14e00e78afd3e52.tar.xz |
chromium 99.0.4818.0 (testing, with clang)
Diffstat (limited to 'www-client/chromium/files')
-rw-r--r-- | www-client/chromium/files/chromium-99-dnd-3381679.patch | 19 |
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; |