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:
zoy 2025-04-01 21:43:54 +08:00 committed by GitHub
parent 08da2b0b07
commit 0e687d3082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);