Browse Source

fix: frameless vibrant modals shouldn't bezel (#24284)

Co-authored-by: Shelley Vohr <[email protected]>
trop[bot] 4 years ago
parent
commit
e059ae7bd6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      shell/browser/native_window_mac.mm

+ 1 - 1
shell/browser/native_window_mac.mm

@@ -1454,7 +1454,7 @@ void NativeWindowMac::SetVibrancy(const std::string& type) {
     [effect_view setState:NSVisualEffectStateActive];
 
     // Make frameless Vibrant windows have rounded corners.
-    if (!has_frame()) {
+    if (!has_frame() && !is_modal()) {
       CGFloat radius = 5.0f;  // default corner radius
       CGFloat dimension = 2 * radius + 1;
       NSSize size = NSMakeSize(dimension, dimension);