mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 09:37:31 +09:00
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.
This commit is contained in:
parent
2e944692c3
commit
069b11c14c
1 changed files with 4 additions and 0 deletions
|
|
@ -2903,6 +2903,10 @@ static NSMutableSet *gSwizzledFrameViewClasses = nil;
|
||||||
{
|
{
|
||||||
mDrawsIntoWindowFrame = NO;
|
mDrawsIntoWindowFrame = NO;
|
||||||
[super initWithContentRect:aContentRect styleMask:aStyle backing:aBufferingType defer:aFlag];
|
[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;
|
mState = nil;
|
||||||
mActiveTitlebarColor = nil;
|
mActiveTitlebarColor = nil;
|
||||||
mInactiveTitlebarColor = nil;
|
mInactiveTitlebarColor = nil;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue