commit | fbf47dae36eedbe09c210f1e2ba1de3b6a469f50 | [log] [tgz] |
---|---|---|
author | Nick Diego Yamane <nickdiego@igalia.com> | Tue Oct 29 19:43:54 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 29 19:43:54 2024 |
tree | 1d870ad5c0183a34cac526a4d766dc12228becf4 | |
parent | 52b6f1ce0943f3d70098116a03919c73c46cb7a2 [diff] |
tabdrag: fix drag offset miscalc when detaching from maximized windows The fix consists of not overwriting the full (previously calculated) drag offset, in TabDragController::AdjustBrowserAndTabBoundsForDrag. Instead, it only adjusts its X coordinate, which makes even more sense in the end as that function is actually about horizontal alignment. Also, the (reposition-only) SetBounds call in that very same function is now restricted to when the platform does support global screen window positioning. Additionally, a minor cleanup is done by re-using PlatformProvidesAbsoluteWindowPositions instead of replicating its implementation in CreateBrowserForDrag. R=max@igalia.com, tbergquist Bug: 375876206 Test: Manually using both KWin and (wip) Mutter xdg-toplevel-drag protocol impl Change-Id: I0352ef4b3cfdc4e483fc1a3cf2fde4e85e82dbe2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5969493 Commit-Queue: Nick Yamane <nickdiego@igalia.com> Reviewed-by: Max Ihlenfeldt <max@igalia.com> Reviewed-by: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/main@{#1375447}
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.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.