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:
parent
08da2b0b07
commit
0e687d3082
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue