Skip to content

fix: fix cast in ElectronDesktopWindowTreeHostLinux#42185

Merged
VerteDinde merged 1 commit into30-x-yfrom
trop/30-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006831
May 14, 2024
Merged

fix: fix cast in ElectronDesktopWindowTreeHostLinux#42185
VerteDinde merged 1 commit into30-x-yfrom
trop/30-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006831

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:27
@trop trop bot added 30-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes labels May 14, 2024
@VerteDinde VerteDinde merged commit 60f48e1 into 30-x-y May 14, 2024
@VerteDinde VerteDinde deleted the trop/30-x-y-bp-fix-fix-cast-in-electrondesktopwindowtreehostlinux-1715722006831 branch May 14, 2024 23:14
@release-clerk
Copy link

release-clerk bot commented May 14, 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

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