| commit | 98b5c3eceaf964bf01da3c6be18fa6608d17a30c | [log] [tgz] |
|---|---|---|
| author | Yuwei Huang <yuweih@chromium.org> | Fri Aug 29 03:02:42 2025 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Aug 29 03:02:42 2025 |
| tree | a3bfa93588df4d76e159c6af61f9bbda9c3609a9 | |
| parent | e8f869920469f0096cf5a5ce0e6505ab18014cde [diff] |
[crd host][wayland] Set monitor layout This CL updates GnomeDesktopResizer so that the monitor layout configured via the VideoLayout protobuf will be applied to Mutter's virtual monitor. One issue I've found is that, Mutter has a tendency to change the layout back to horizontal start-aligned whenever a monitor is resized via PipeWire. To allow the layout to stick, we calculate the layout info whenever the VideoLayout is received, or before a monitor is resized, if it is not yet set, then we relayout with the layout info right before we call ApplyMonitorsConfig. Due to `preferred_monitors_config_` and `preferred_layout_`, the host's display config will be entirely controlled by the client, meaning if the user tries to change the display config via the settings app, it will be immediately reverted by GnomeDesktopResizer. In the next CL, I'll look into relaxing this by clearing these fields with a timer, hopefully after the display config has stabilized. This is required for implementing RestoreResolution(). Bug: 432217140 Change-Id: I6ef899ef1afee45db6e5f2ad0cedccb8e04652fa Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6893890 Reviewed-by: Lambros Lambrou <lambroslambrou@chromium.org> Commit-Queue: Yuwei Huang <yuweih@chromium.org> Cr-Commit-Position: refs/heads/main@{#1508150}
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.