commit | 81df8426c6d72a6fa142daf1b5d4049394b536b6 | [log] [tgz] |
---|---|---|
author | Maksim Sisov <msisov@igalia.com> | Fri Jan 24 06:32:56 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Jan 24 06:32:56 2020 |
tree | c3a004106fdf6353834c1eeb5222f2132c83224c | |
parent | c172448cbca5d4141b4266c50bd27460afbb26c9 [diff] |
ozone/wayland: use wl_subsurface for DnD tab arrows Ozone/Wayland used to be using WaylandPopup windows for DnD tab arrows. However, we needed to resolve some problems: 1) A parent couldn't be found as long as a parent widget is not provided for tab arrow windows. 2) WaylandPopup searched for currently focused windows and failed to do so, because Wayland compositor resets pointer focus as soon as DnD starts. 3) WaylandPopup couldn't be repositioned without being recreated. Thus, I made the following changes If we are in DnD process - Create WaylandSubsurface that can be repositioned compared to WaylandPopup. - Use the entered to drag window as a parent for WaylandSubsurface to show dnd tab arrows on top of that. Bug: 1044931 Change-Id: I1a7e286ac2acfbc7f92cf6f8fe691f52a73fdbba Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2015026 Reviewed-by: Michael Spang <spang@chromium.org> Commit-Queue: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#734832}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .