fix: rounded corners disappear momentarily on window close (#46408)

fix: Explicitly set rounded corners in borderless mode on Windows 11

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: zoy <zoy-l@outlook.com>
This commit is contained in:
trop[bot] 2025-04-01 13:28:37 -05:00 committed by GitHub
parent 13488d3c98
commit a644c7029a
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);