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
Conversation
Release Notes Persisted
|
I have automatically backported this PR to "27-x-y", please check out #40217 |
I have automatically backported this PR to "26-x-y", please check out #40218 |
I have automatically backported this PR to "28-x-y", please check out #40219 |
I have automatically backported this PR to "25-x-y", please check out #40220 |
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 happeningBrowserWindow
entered or exited fullscreen that it should update WCO{ 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
npm test
passesRelease Notes
Notes: Fixed an issue with webContents interaction with fullscreen and WCO on macOS.