Skip to content

Commit e059ae7

Browse files
fix: frameless vibrant modals shouldn't bezel (electron#24284)
Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com>
1 parent fb292c2 commit e059ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shell/browser/native_window_mac.mm

Lines changed: 1 addition & 1 deletion
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)