Issue #2022 - Part 1 - Fix transparent windows on MacOS 13 Ventura.

During the BaseWindow creation contenView is nil on Ventura...
So create a NSView with the requested dimensions and set is as the contenView.
pull/2023/head
Brian Smith 1週間前
コミット e73a2fb0fc
  1. 4
      widget/cocoa/nsCocoaWindow.mm

@ -2903,6 +2903,10 @@ static NSMutableSet *gSwizzledFrameViewClasses = nil;
{
mDrawsIntoWindowFrame = NO;
[super initWithContentRect:aContentRect styleMask:aStyle backing:aBufferingType defer:aFlag];
// MacOS 13 Ventura, doesn't seem to create the contentView... so create it ourselves
if(![super contentView]) {
[super setContentView:[[NSView alloc] initWithFrame:aContentRect]];
}
mState = nil;
mActiveTitlebarColor = nil;
mInactiveTitlebarColor = nil;

読み込み中…
キャンセル
保存