File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -445,11 +445,13 @@ - (NSRect)contentRectForFrameRect:(NSRect)frameRect {
445
445
446
446
void NativeWindowCocoa::SetTransparent () {
447
447
is_transparent_ = true ;
448
- restored_bounds_ = [window () frame ];
449
- [window () setStyleMask: (NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask )];
450
- [window () setFrame: [window ()
448
+ if (base::mac::IsOSMountainLionOrLater ()) {
449
+ restored_bounds_ = [window () frame ];
450
+ [window () setStyleMask: (NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask )];
451
+ [window () setFrame: [window ()
451
452
frameRectForContentRect: [window () frame ]]
452
453
display: YES ];
454
+ }
453
455
[window () setHasShadow: NO ];
454
456
ShellNSWindow* swin = (ShellNSWindow*)window ();
455
457
[swin setTransparent ];
You can’t perform that action at this time.
0 commit comments