[Wayland] Fix GnomeDisplayConfig logical size rounding error [chromium/src : refs/branch-heads/7827]

0 views
Skip to first unread message

Yuwei Huang (Gerrit)

unread,
May 18, 2026, 8:22:54 PM (3 days ago) May 18
to rubber-...@appspot.gserviceaccount.com, android-bu...@system.gserviceaccount.com, chromotin...@chromium.org

Yuwei Huang voted

Auto-Submit+1
Commit-Queue+1
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement satisfiedLint
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7827
Gerrit-Change-Id: I25c697a3fc434a9caf77bb3f01664cfddfa9e5a9
Gerrit-Change-Number: 7858550
Gerrit-PatchSet: 2
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Tue, 19 May 2026 00:22:46 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

rubber-stamper@appspot.gserviceaccount.com (Gerrit)

unread,
May 18, 2026, 8:23:14 PM (3 days ago) May 18
to Yuwei Huang, Chromium LUCI CQ, android-bu...@system.gserviceaccount.com, chromotin...@chromium.org

Related details

Attention set is empty
Submit Requirements:
  • requirement satisfiedCode-Owners
  • requirement satisfiedCode-Review
  • requirement satisfiedLint
  • requirement satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7827
Gerrit-Change-Id: I25c697a3fc434a9caf77bb3f01664cfddfa9e5a9
Gerrit-Change-Number: 7858550
Gerrit-PatchSet: 2
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Tue, 19 May 2026 00:23:04 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
May 18, 2026, 9:15:51 PM (3 days ago) May 18
to Yuwei Huang, rubber-...@appspot.gserviceaccount.com, android-bu...@system.gserviceaccount.com, chromotin...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[Wayland] Fix GnomeDisplayConfig logical size rounding error

GnomeDisplayConfig::GetLayoutSize() calculated logical monitor sizes
using truncation (implicit double-to-int conversion). For scaled
displays (e.g., 3840 width at 1.333... scale), this yields 2879 DIPs
instead of Mutter's rounded 2880 DIPs.

During Relayout(), the host packs adjacent monitors, positioning the
second monitor at x=2879. Mutter detects a 1px overlap with the first
monitor (which is 2880 wide) and rejects the layout with "Logical
monitors not adjacent".

This CL fixes the bug by wrapping the division in base::ClampRound(),
which safely rounds to the nearest integer and prevents potential
overflows, aligning the host's logical size calculation with Mutter's.

TAG=agy
CONV=982f94ac-ba44-429f-a544-432d0bc66b83

(cherry picked from commit fb369fcefde810fc03fef19edaece7b1db6754c1)
Bug: 514449607,514435889
Change-Id: I25c697a3fc434a9caf77bb3f01664cfddfa9e5a9
Commit-Queue: Yuwei Huang <yuw...@chromium.org>
Reviewed-by: Lambros Lambrou <lambros...@chromium.org>
Commit-Queue: Lambros Lambrou <lambros...@chromium.org>
Auto-Submit: Yuwei Huang <yuw...@chromium.org>
Cr-Original-Commit-Position: refs/heads/main@{#1632503}
Cr-Commit-Position: refs/branch-heads/7827@{#1100}
Cr-Branched-From: 9f3e9aaccba63bd2ec30334e45e0bfd07ebcc8f1-refs/heads/main@{#1625079}
Files:
  • M remoting/host/linux/gnome_display_config.cc
Change size: XS
Delta: 1 file changed, 4 insertions(+), 2 deletions(-)
Branch: refs/branch-heads/7827
Submit Requirements:
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: chromium/src
Gerrit-Branch: refs/branch-heads/7827
Gerrit-Change-Id: I25c697a3fc434a9caf77bb3f01664cfddfa9e5a9
Gerrit-Change-Number: 7858550
Gerrit-PatchSet: 3
Gerrit-Owner: Yuwei Huang <yuw...@chromium.org>
Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages