From 0e687d308293d4e881a12f4c35dcc4a5849a414e Mon Sep 17 00:00:00 2001 From: zoy Date: Tue, 1 Apr 2025 21:43:54 +0800 Subject: [PATCH] fix: rounded corners disappear momentarily on window close (#46382) fix: Explicitly set rounded corners in borderless mode on Windows 11 Signed-off-by: zoy --- shell/browser/native_window_views.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/shell/browser/native_window_views.cc b/shell/browser/native_window_views.cc index 62b3c07cf0e9..c3bcb4bf4dd4 100644 --- a/shell/browser/native_window_views.cc +++ b/shell/browser/native_window_views.cc @@ -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);