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]: Maximizing a frameless window with background material (Mica) permanently breaks the window #41824
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.0.0-beta.7
What operating system are you using?
Windows
Operating System Version
Windows 11
What arch are you using?
x64
Last Known Working Electron version
No response
Expected Behavior
A window with these properties:
frame: false,
backgroundMaterial: "mica",
// Setting WCO is optional but is the simplest way to access maximize and restore controls
titleBarStyle: "hidden",
titleBarOverlay: true
should be able to be maximized and restored/unmaximized with no detrimental effects.
Actual Behavior
When you maximize a frameless window with background material (whether through WCO titlebar controls or programmatically) it causes the following irreversible damage to the window:
The background material disappears and cannot be re-applied
The background colour goes pitch black and cannot be changed
The window's rounded frame, border, shadows, and resize handles are gone when the window is restored
Restoring/unmaximizing the window does not bring back the original styles.
Frameless Mica windows use custom styles to achieve a "thin frame" appearance and I suspect these are being lost/mangled when the window is maximized, and are not being reset when the window is restored.
CC-ing @brhenrique who worked on some improvements to Mica windows without frames and may have some insight here.
Reacted by Eugene, Tony, Ryan Blue, Lennart Hase, reito, Elian Doran and Simon Schneegans
The problem occurs for us as well in our application (see TriliumNext/Notes#717), making it impossible to activate this feature by default. Moreover, if we have the native title bar activated, we run into a disabled maximize button (see #10414).
hey folks - got a lead on this and should have a mitigation PR up by the end of next week.
That bug still occurs (on [email protected]) when maximizing the window by dragging it to the top of the screen or using the Win + ↑ shortcut. Additionally, the setFullscreen() function doesn't remove the Window corners unless it is called while the window is maximized. Please re-open this issue.
Reacted by Yaroslav, Ben Schoepke, bschoepke-openai, xaf, Hanxven, Yoojun Zhou, Yutamago and Scott-MacD
Activity
watchingfun commentedon Jun 4, 2024
v30.0.9 same problem
richhost commentedon Jun 12, 2024
v31.0.0 same problem
alexander-499 commentedon Sep 6, 2024
v30.0.8 Same problem!
reitowo commentedon Nov 28, 2024
Same here
eliandoran commentedon Dec 9, 2024
The problem occurs for us as well in our application (see TriliumNext/Notes#717), making it impossible to activate this feature by default. Moreover, if we have the native title bar activated, we run into a disabled maximize button (see #10414).
VIXI0 commentedon Jan 7, 2025
Does Anyone has a working version ?
VIXI0 commentedon Jan 7, 2025
#38466 (comment)
here is a workaround
codebytere commentedon Feb 2, 2025
hey folks - got a lead on this and should have a mitigation PR up by the end of next week.
rasterdds commentedon Feb 18, 2025
That bug still occurs (on [email protected]) when maximizing the window by dragging it to the top of the screen or using the
Win + ↑shortcut. Additionally, thesetFullscreen()function doesn't remove the Window corners unless it is called while the window is maximized. Please re-open this issue.Prevent acrylic loss on maximize with work-area fake maximize (1.1.4)