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: incorrect wco bounds in macOS fullscreen #40179

Merged
merged 1 commit into from Oct 16, 2023

Conversation

codebytere
Copy link
Member

Description of Change

Closes #39885.

Fixes an issue where webContents elements in the traffic light area couldn't be interacted with if a BrowserWindow with titleBarOverlay enabled was fullscreen. This was happening

  1. Because we didn't notify WebContents when a given BrowserWindow entered or exited fullscreen that it should update WCO
  2. We didn't account for a scenario where bounds could be { 0, 0 } intentionally while the overlay was active.

This addresses that by making the return value of GetWindowControlsOverlayRect optional to distinguish intent. See here for similar handling upstream.

Tested with https://gist.github.com/sergeichestakov/c84835f4d80182744b99e837268edc7c

Checklist

Release Notes

Notes: Fixed an issue with webContents interaction with fullscreen and WCO on macOS.

@codebytere codebytere added semver/patch backwards-compatible bug fixes target/25-x-y PR should also be added to the "25-x-y" branch. target/26-x-y PR should also be added to the "26-x-y" branch. target/27-x-y PR should also be added to the "27-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Oct 11, 2023
@electron-cation electron-cation bot added new-pr 🌱 PR opened in the last 24 hours and removed new-pr 🌱 PR opened in the last 24 hours labels Oct 11, 2023
@codebytere codebytere merged commit f362e08 into main Oct 16, 2023
25 checks passed
@codebytere codebytere deleted the fix-wco-macos-fullscreen branch October 16, 2023 09:18
@release-clerk
Copy link

release-clerk bot commented Oct 16, 2023

Release Notes Persisted

Fixed an issue with webContents interaction with fullscreen and WCO on macOS.

@trop
Copy link
Contributor

trop bot commented Oct 16, 2023

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

@trop trop bot added in-flight/27-x-y and removed target/27-x-y PR should also be added to the "27-x-y" branch. labels Oct 16, 2023
@trop
Copy link
Contributor

trop bot commented Oct 16, 2023

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

@trop
Copy link
Contributor

trop bot commented Oct 16, 2023

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

@trop
Copy link
Contributor

trop bot commented Oct 16, 2023

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

@trop trop bot added in-flight/28-x-y in-flight/25-x-y and removed target/26-x-y PR should also be added to the "26-x-y" branch. target/28-x-y PR should also be added to the "28-x-y" branch. labels Oct 16, 2023
@trop trop bot added merged/27-x-y PR was merged to the "27-x-y" branch. merged/25-x-y PR was merged to the "25-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. merged/26-x-y PR was merged to the "26-x-y" branch. and removed target/25-x-y PR should also be added to the "25-x-y" branch. in-flight/27-x-y in-flight/25-x-y in-flight/28-x-y in-flight/26-x-y labels Oct 16, 2023
felixrieseberg pushed a commit to felixrieseberg/electron that referenced this pull request Oct 25, 2023
MrHuangJser pushed a commit to MrHuangJser/electron that referenced this pull request Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged/25-x-y PR was merged to the "25-x-y" branch. merged/26-x-y PR was merged to the "26-x-y" branch. merged/27-x-y PR was merged to the "27-x-y" branch. merged/28-x-y PR was merged to the "28-x-y" branch. semver/patch backwards-compatible bug fixes
Projects
None yet
2 participants