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: show maximized frameless window #30804
fix: show maximized frameless window #30804
Conversation
https://ci.appveyor.com/project/electron-bot/electron-92tg5/builds/40614691?fullLog=true#L45020
Test is failing. Will take another look soon. |
BrowserWindow will be sized to the workArea when the Windows taskbar is visible.
Failure
is unrelated. |
Release Notes Persisted
|
I have automatically backported this PR to "13-x-y", please check out #30862 |
I have automatically backported this PR to "12-x-y", please check out #30863 |
I have automatically backported this PR to "14-x-y", please check out #30864 |
I have automatically backported this PR to "15-x-y", please check out #30865 |
Description of Change
fixes #30798
Transparent frameless windows do not support being maximized.
We approximate the maximized state by checking if the window takes up the nearest screen's bounds:
electron/shell/browser/native_window_views.cc
Lines 597 to 610 in 49e62f1
If that's the case,
browserWindow.show()
attempts to restore the window to a maximized state which will break its transparency and bounds. See #30798 (comment) for more details.Checklist
npm test
passesRelease Notes
Notes: Fixed transparent frameless windows having an opaque background when opened in a maximized state.