electron: 'backgroundMaterial' is not work in frameless window
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
24.4.0
What operating system are you using?
Windows
Operating System Version
Windows 11 22H2
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
The feature of backgroundMaterial could work on frameless window, or it can work when the titleBarStyle is hidden.
Actual Behavior
The feature of backgroundMaterial is not work when set frame: false or titleBarStyle: hidden.
Testcase Gist URL
No response
Additional Information
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 9
- Comments: 22 (2 by maintainers)
Commits related to this issue
- fix: backgroundMaterial on initial activate Closes https://github.com/electron/electron/issues/38466 — committed to electron/electron by codebytere 2 years ago
- fix: `backgroundMaterial` on initial activate (#46657) * fix: backgroundMaterial on initial activate Closes https://github.com/electron/electron/issues/38466 * Update patches/chromium/fix_activate_... — committed to tjni/electron by codebytere 2 years ago
bump
It has 0 window animation
I found a work around:
Build your own buttons for the window and instead of Using
win.maximize()andwin.unmaximize()usewin.setBounds()It does almost the same thing without losing the effect the only Downside is that you have to do your own buttons which is not very difficult
whe you receive the event from render execute something like this