Skip to content

[Bug]: set "transparent" to true and "titleBarStyle” to "hidden", a title bar is shown when window loses focus, "backgroundMaterial" not work until resizing the window. #39959

@bluesky335

Description

@bluesky335

Preflight Checklist

Electron Version

27.0.0-beta.5

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

1、The window should show without a title bar.
2、The window should be transparent and backgrounds should be "acrylic" style.
image

Actual Behavior

1、window background not transparent and not "acrylic" style until I resize the window.

image
after resize the window:
image

2、If the window loses focus, a title bar is shown and it can't interact.

image

Testcase Gist URL

https://gist.github.com/d51806da56e0f6103859d0164b22a80a

Additional Information

No response

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions