[ozone/wayland] Use touch focused parent if parent is not specified
When context menus are created (with right-click or long touch press), WaylandWindow must take a focused window as a parent for that context aka popup window. It has always been so for mouse clicks, but not for touches. Now, GetCurrentFocusedWindow returns either a window with pointer focus or touch focus. Also fix unittests and their expectations Bug: 973015 Change-Id: I3c268f3956d57fd673c5e7a8646a30fdd4c921a9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1715078 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by:Antonio Gomes <tonikitoo@igalia.com> Reviewed-by:
Robert Kroeger <rjkroege@chromium.org> Cr-Commit-Position: refs/heads/master@{#681708}
Showing
Please register or sign in to comment