Skip to content

fix: Wayland general CSD fixes#35206

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

fix: Wayland general CSD fixes#35206
codebytere merged 4 commits intoelectron:20-x-yfrom
msizanoen1:wayland-general-fixes-20

Conversation

@msizanoen1
Copy link
Copy Markdown
Contributor

Description of Change

Backport of #34955

Release Notes

Notes: Fix support for Wayland client-side decorations

@msizanoen1 msizanoen1 requested review from a team as code owners August 3, 2022 13:31
@electron-cation electron-cation bot added the new-pr 🌱 PR opened recently label Aug 3, 2022
@trop trop bot mentioned this pull request Aug 3, 2022
2 tasks
@trop trop bot added 20-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels Aug 3, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened recently label Aug 3, 2022
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 force-pushed the wayland-general-fixes-20 branch from 5e29e86 to 8d5adb9 Compare August 3, 2022 14:01
@codebytere codebytere merged commit c84a45f into electron:20-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-20 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

20-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