Skip to content

Commit 46f58b2

Browse files
authored
fix: frameless vibrant modals shouldn't bezel (electron#24250)
1 parent 6369748 commit 46f58b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/browser/native_window_mac.mm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1454,7 +1454,7 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
14541454
[effect_view setState:NSVisualEffectStateActive];
14551455

14561456
// Make frameless Vibrant windows have rounded corners.
1457-
if (!has_frame()) {
1457+
if (!has_frame() && !is_modal()) {
14581458
CGFloat radius = 5.0f; // default corner radius
14591459
CGFloat dimension = 2 * radius + 1;
14601460
NSSize size = NSMakeSize(dimension, dimension);

0 commit comments

Comments
 (0)