From a644c7029a4c828e21e13d54ba3c785bc216fd78 Mon Sep 17 00:00:00 2001 From: "trop[bot]" <37223003+trop[bot]@users.noreply.github.com> Date: Tue, 1 Apr 2025 13:28:37 -0500 Subject: [PATCH] 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 --- 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 16300fa2b6f8..d9dcc4f72712 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);