ozone/wayland: tabdrag: Ensure dragged window has focus after drop
A regression was introduced with initial extended-drag integration in Ozone/Wayland as described in details at https://crbug.com/1148021. This CL addresses the issue 2 described in the link above: When an already mapped window is dragged, it is not supposed to get a wl_pointer::enter again after the DND/extended session finishes (it already had focus before it started), so it's client responsibility to restore the focused window when upon drop event. That's like that because it is updated by the window drag controller based on data device events during the DND session. This patch fixes it by explicitly restoring the focus to the dragged window, if any, when the session finishes. Bug: 1148021 Change-Id: I8315a873673c303fb7726ff98a4a247983225442 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2533036 Commit-Queue: Nick Yamane <nickdiego@igalia.com> Reviewed-by:Antonio Gomes <tonikitoo@igalia.com> Cr-Commit-Position: refs/heads/master@{#827053}
Showing
Please register or sign in to comment