You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Cannot enable Background Material for the client area #38454
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
24.4.0
What operating system are you using?
Windows
Operating System Version
Windows 11 version 22H2 build 22624.1755
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
When setting the backgroundMaterial property on a new BrowserWindow, it is expected for the window background to use the material as well as the titlebar.
Actual Behavior
Only the titlebar of the window has the material, but the client area remains white or any other background color, unless the window is set to be transparent (see below).
Testcase Gist URL
No response
Additional Information
You can work around this issue by setting transparent: true, show: false in the window constructor, and showing the window after the webcontents have been loaded. But this approach raises and issue: the window becomes unresizeable and the thickFrame: true option is ignored. The method window.setResizeable(true) doesn't work either.
Reacted by Eana Hufwe, JellyBrick, Laura Sofia Heimann, Moon可 and Takuya Matsuyama
As shown in the figure, backgroundMaterial appears to be working properly when titleBarStyle is set to default. However, when titleBarStyle is set to 'hidden', the effect is not satisfactory.
I lost the rounded corners, and at the same time backgroundMaterial is not working.
Yeah there seems to be a series of issues here where they try to add this, but every time it's not quite right or not quite enough. The latest is #39959
From my observations what is happening in that window is that it starts out white, but ONCE you push it out of the screen, that region that has been outside of the screen becomes acrylic. This also happens when you open a window that is maximized from the task bar and then go back to the electron app.
Activity
Daydreamer-riri commentedon May 25, 2023
There are also some other questions here.
As shown in the figure,
backgroundMaterialappears to be working properly whentitleBarStyleis set todefault. However, whentitleBarStyleis set to 'hidden', the effect is not satisfactory.I lost the rounded corners, and at the same time
backgroundMaterialis not working.titleBarStyle:
default:titleBarStyle:
hidden:kochie commentedon May 29, 2023
If it helps, with a similar setup I get a white window that disappears when the window goes over the edge of the screen.

https://gist.github.com/4b5f34680a08a6ff569196e70e5d48a0
gaetandezeiraud commentedon Jul 27, 2023
Any news on this?
Daydreamer-riri commentedon Aug 7, 2023
Any progress here?
Is there anything I can help?
craftzdog commentedon Aug 9, 2023
The
transparent = trueandframe = truecombination makes the browser window unresizable.fzf404 commentedon Sep 18, 2023
I have the same problem.
codebytere commentedon Sep 21, 2023
Should have been addressed in #39708
JellyBrick commentedon Sep 30, 2023
@codebytere This issue was not resolved in
v27.0.0-beta.8&v28.0.0-nightly20230929vitaminj commentedon Sep 30, 2023
Yeah there seems to be a series of issues here where they try to add this, but every time it's not quite right or not quite enough. The latest is #39959
just-anubis commentedon Apr 4, 2025
From my observations what is happening in that window is that it starts out white, but ONCE you push it out of the screen, that region that has been outside of the screen becomes acrylic. This also happens when you open a window that is maximized from the task bar and then go back to the electron app.