Skip to content

fix: fix cast in ElectronDesktopWindowTreeHostLinux#42184

Merged
VerteDinde merged 1 commit into31-x-yfrom
trop/31-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006146
May 15, 2024
Merged

fix: fix cast in ElectronDesktopWindowTreeHostLinux#42184
VerteDinde merged 1 commit into31-x-yfrom
trop/31-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006146

Conversation

@trop
Copy link
Contributor

@trop trop bot commented May 14, 2024

Backport of #42179

See that PR for details.

Notes: Fix crash on window maximize on X11

The frame view of the widget is an `ClientFrameViewLinux` instance only
when both `frame` and `client_frame` booleans are set to `true`.
Otherwise it is an instance of a different class and thus casting to
`ClientFrameViewLinux` is incorrect and leads to crashes.

Fix: #41839

Co-authored-by: Fedor Indutny <[email protected]>
@trop trop bot requested a review from a team May 14, 2024 21:26
@trop trop bot added 31-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 14, 2024
@VerteDinde VerteDinde merged commit a0500a5 into 31-x-y May 15, 2024
@VerteDinde VerteDinde deleted the trop/31-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006146 branch May 15, 2024 00:33
@release-clerk
Copy link

release-clerk bot commented May 15, 2024

Release Notes Persisted

Fix crash on window maximize on X11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

31-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.

1 participant