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: non-client windows messages on legacy widget host (again) #33438

Merged
merged 1 commit into from Mar 25, 2022

Conversation

clavin
Copy link
Member

@clavin clavin commented Mar 24, 2022

Description of Change

🥲 #32871 broke the double-click-to-maximize behavior on frameless and WCO windows. As they say, third time's a charm!

To expound a bit more, this patch has been modified to follow the old code path 99% of the time, and the only time it deviates from chrome is on non-client mouse move messages. This is specifically because mouse movements are tracked on the legacy window, not the actual web content (parent) window that you see.

I manually tested all the possible window controls and title bar interactions I could, from drags and double clicks and hovers and system commands (the move and size actions in the window's system menu that you control with your keyboard). Web content below seems to be functioning right as well. Everything I can think of seems to work. Hopefully that means this patch can be upstreamed!

Checklist

Release Notes

Notes: Fixed maximizing frameless windows by double-clicking on a draggable (title bar) region.

@clavin clavin requested review from a team as code owners March 24, 2022 20:47
@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Mar 24, 2022
@VerteDinde VerteDinde added semver/patch backwards-compatible bug fixes target/18-x-y labels Mar 24, 2022
@codebytere codebytere merged commit b03d6df into main Mar 25, 2022
@codebytere codebytere deleted the clavin/fix-frameless-double-click-maximize branch March 25, 2022 10:12
@release-clerk
Copy link

release-clerk bot commented Mar 25, 2022

Release Notes Persisted

Fixed maximizing frameless windows by double-clicking on a draggable (title bar) region.

@trop
Copy link
Contributor

trop bot commented Mar 25, 2022

I was unable to backport this PR to "15-x-y" cleanly;
you will need to perform this backport manually.

@codebytere
Copy link
Member

oh no sorry i missed the new-pr time-stamp on this 😓

my deepest apologies - if there's an issue please feel free to revert!

@trop
Copy link
Contributor

trop bot commented Mar 25, 2022

I have automatically backported this PR to "16-x-y", please check out #33444

@trop
Copy link
Contributor

trop bot commented Mar 25, 2022

I have automatically backported this PR to "17-x-y", please check out #33445

@trop trop bot removed the target/16-x-y label Mar 25, 2022
@trop
Copy link
Contributor

trop bot commented Mar 25, 2022

I have automatically backported this PR to "18-x-y", please check out #33446

@trop
Copy link
Contributor

trop bot commented Mar 25, 2022

@clavin has manually backported this PR to "15-x-y", please check out #33449

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/patch backwards-compatible bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants