Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Wayland general CSD fixes #35207

Merged
merged 5 commits into from Aug 4, 2022

Conversation

msizanoen1
Copy link
Contributor

Description of Change

Backport of #34955

Release Notes

Notes: Fix support for Wayland client-side decorations

The `GetTitlebarBounds().height()` is obviously intended to be placed in
the `top` parameter, which used to be the second one before upstream
removed multi-parameter `gfx::Rect::Inset`, but it's the first parameter
for `gfx::Insets::TLBR`, which was intended to replace the removed
`Inset` function. However, whoever updated Chromium kept the parameter
unchanged, causing the title bar height to be passed to the `left`
parameter, causing the window title bar to be unclickable.
Use NonClientFrameView::TargetForRect for the ClientFrameViewLinux
implementation because the default inherited from FramelessView blocks
any non-HTCLIENT events.
This ensures that the toolkit renders the window decorations in maximized mode
while the window is maximized to ensure that there is no empty space around the window.
@msizanoen1 msizanoen1 requested review from a team as code owners August 3, 2022 13:33
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Aug 3, 2022
@trop trop bot added 19-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 3, 2022
@trop trop bot mentioned this pull request Aug 3, 2022
2 tasks
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Aug 3, 2022
@msizanoen1 msizanoen1 changed the title Wayland general fixes 19 fix: Wayland general CSD fixes Aug 3, 2022
@codebytere codebytere merged commit 4b48379 into electron:19-x-y Aug 4, 2022
@release-clerk
Copy link

release-clerk bot commented Aug 4, 2022

Release Notes Persisted

Fix support for Wayland client-side decorations

@msizanoen1 msizanoen1 deleted the wayland-general-fixes-19 branch August 4, 2022 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
19-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants