Skip to content

fix: Wayland general CSD fixes#35207

Merged
codebytere merged 5 commits intoelectron:19-x-yfrom
msizanoen1:wayland-general-fixes-19
Aug 4, 2022
Merged

fix: Wayland general CSD fixes#35207
codebytere merged 5 commits intoelectron:19-x-yfrom
msizanoen1:wayland-general-fixes-19

Conversation

@msizanoen1
Copy link
Copy Markdown
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 recently 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 recently and removed new-pr 🌱 PR opened recently 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
Copy Markdown

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.

3 participants