[M144] Fix crash when exiting fullscreen on Linux with Metacity WM [chromium/src : refs/branch-heads/7559]

0 views
Skip to first unread message

Rubber Stamper (Gerrit)

unread,
Jan 20, 2026, 3:46:16 PM (12 days ago) Jan 20
to Chrome Cherry Picker, Patryk Chodur, AyeAye, ozone-...@chromium.org

Rubber Stamper voted

Bot-Commit+1
Commit-Queue+2
Open in Gerrit

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/7559
Gerrit-Change-Id: I77f355d30907e5343429527b9964508a4ab59be2
Gerrit-Change-Number: 7500111
Gerrit-PatchSet: 2
Gerrit-Reviewer: Chrome Cherry Picker <chrome-che...@chops-service-accounts.iam.gserviceaccount.com>
Gerrit-Reviewer: Rubber Stamper <rubber-...@appspot.gserviceaccount.com>
Gerrit-CC: Patryk Chodur <pch...@google.com>
Gerrit-Comment-Date: Tue, 20 Jan 2026 20:46:07 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
satisfied_requirement
open
diffy

Chromium LUCI CQ (Gerrit)

unread,
Jan 20, 2026, 4:58:45 PM (12 days ago) Jan 20
to Chrome Cherry Picker, Patryk Chodur, Rubber Stamper, AyeAye, ozone-...@chromium.org

Chromium LUCI CQ submitted the change

Change information

Commit message:
[M144] Fix crash when exiting fullscreen on Linux with Metacity WM

Original change's description:
> Fix crash when exiting fullscreen on Linux with Metacity WM
>
> This commit fixes a problem with segmentation fault when exiting
> fullscreen on X11 Linux with Metacity window manager.
>
> In the SetFullscreen(bool), function there's a workaround for a problem
> with Metacity window manager. Along with the changed introduced in
> https://crrev.com/c/7095963, exiting fullscreen causes an infinite call
> loop. The SetFullscreen(false) calls Restore(), which then calls
> SetFullscreen(false) if the window was in fullscreen mode.
>
> This commit fixes the problem by changing the Restore() and Maximize()
> functions used in the workaround to a function doing just unmaximizing
> and maximizing with the SetWMSpecState. The Restore() and Maximize()
> functions work on a higher level and decide what to do based on the
> current state. Looking at the workaround code, the intention was to just
> trigger unmaximizing and maximizing again.
>
> Bug: 476835800
> Change-Id: I77f355d30907e5343429527b9964508a4ab59be2
> Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7493579
> Commit-Queue: Patryk Chodur <pch...@google.com>
> Reviewed-by: Kyle Charbonneau <kyle...@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#1571323}

(cherry picked from commit 3c577742667aa686cb0f15b31654118b6d4e158e)
Bug: 477055820,476835800
Change-Id: I77f355d30907e5343429527b9964508a4ab59be2
Commit-Queue: Rubber Stamper <rubber-...@appspot.gserviceaccount.com>
Bot-Commit: Rubber Stamper <rubber-...@appspot.gserviceaccount.com>
Cr-Commit-Position: refs/branch-heads/7559@{#3768}
Cr-Branched-From: 223dfbac1c7542a06b422390d954afe5b560b607-refs/heads/main@{#1552494}
Files:
  • M ui/ozone/platform/x11/x11_window.cc
  • M ui/ozone/platform/x11/x11_window.h
Change size: S
Delta: 2 files changed, 16 insertions(+), 9 deletions(-)
Branch: refs/branch-heads/7559
Submit Requirements:
  • requirement satisfiedCode-Review: Bot-Commit+1 by Rubber Stamper
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/7559
Gerrit-Change-Id: I77f355d30907e5343429527b9964508a4ab59be2
Gerrit-Change-Number: 7500111
Gerrit-PatchSet: 3
Gerrit-Reviewer: Chrome Cherry Picker <chrome-che...@chops-service-accounts.iam.gserviceaccount.com>
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