mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
fix: rounded corners disappear momentarily on window close (#46382)
fix: Explicitly set rounded corners in borderless mode on Windows 11 Signed-off-by: zoy <zoy-l@outlook.com>
This commit is contained in:
@@ -381,8 +381,7 @@ NativeWindowViews::NativeWindowViews(const gin_helper::Dictionary& options,
|
||||
|
||||
bool rounded_corner = true;
|
||||
options.Get(options::kRoundedCorners, &rounded_corner);
|
||||
if (!rounded_corner)
|
||||
SetRoundedCorners(false);
|
||||
SetRoundedCorners(rounded_corner);
|
||||
}
|
||||
|
||||
LONG ex_style = ::GetWindowLong(GetAcceleratedWidget(), GWL_EXSTYLE);
|
||||
|
||||
Reference in New Issue
Block a user