Repository navigation
Description
Preflight Checklist
- I have read the Contributing Guidelines for this project.
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a bug report that matches the one I want to file, without success.
Electron Version
30.1.0
What operating system are you using?
Windows
Operating System Version
Windows 11 version 10.0.22631
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When I want to maximize my window without a title bar and with the Windows 11 background material (mica, acrylic, etc.), I expect to see a default maximized window with these materials.
For example, I use these parameters to enable the maximize button and the background material:
backgroundMaterial: "mica",
titleBarOverlay: {
height: 32
},
frame: false,
maximizable: true,
titleBarStyle: "hidden"
Actual Behavior
When I'm trying to make a BrowserWindow with the activated title bar overlay and background material, I can maximize it (even if I can't maximize the window with the disabled title bar overlay), but the background material becomes black, and the borders lose their border radius.
A window with backgroundMaterial - mica and default title bar:

Testcase Gist URL
No response
Additional Information
Here's my code of the BrowserWindow init, which has the subject issue:
const mainWindow = new BrowserWindow({
width: 1280,
height: 800,
minWidth: 300,
minHeight: 300,
fullscreenable: true,
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
devTools: true,
webSecurity: false
},
resizable: true,
autoHideMenuBar: true,
show: true,
//pay attention on this params below
backgroundMaterial: "mica",
titleBarOverlay: {
height: 32
},
frame: false,
maximizable: true,
titleBarStyle: "hidden"
});
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fields👀 Unsorted Items



Activity
aleversn commentedon Jun 8, 2024
same here
chore: disable window maximization.
kingyue737 commentedon Aug 17, 2024
Duplicate #41824
electron-issue-triage commentedon Nov 16, 2024
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
kingyue737 commentedon Nov 16, 2024
bump
reitowo commentedon Nov 28, 2024
A partial workaround:
I managed to restore the
backdrop effect+rounded cornerby manually calling these API afterwin.on('unmaximize').However when maximized it still turned completely black without effect no matter acrylic or mica.
reitowo commentedon Nov 28, 2024
Another strange thing is when electron is in maximized state with acrylic, it has this extra pixels with acrylic effect below the whole window.
On Spy++ it says the rectangle is 2099 height which confirms it.
reitowo commentedon Nov 29, 2024
I think the wierd padding of the window is the shadow part of the window, and if I set background material to 'none' the wierd acrylic padding are gone.
By setting WindowPos to ClientRect it client area shrinks and it seems only the client area doens't have that backdrop effect.
reitowo commentedon Nov 29, 2024
Just poking around I managed to revive some of this by
after 100ms of 'maximize' event
xyloflake commentedon Jan 11, 2025
bump. i have the exact same issue with v33.
Schneegans commentedon Jan 19, 2025
I am now calling the following from a native module after showing the window:
At least for me, this seems to fix the behavior when the background material is set to 'acrylic'. I am not sure about any negative side, though...
Edit: I just noticed that the blur looks different after maximizing the window. But maybe that's acceptable...
codebytere commentedon Feb 2, 2025
Combining with #41824.
fix(window): drop acrylic on main window so corners survive maximize→…
chore(desktop): upgrade Electron 34.3.0 -> 43.1.0 to fix acrylic-blac…