JBR-3023 Gray idea frame after project open with ide.mac.transparentTitleBarAppearance.

Initiate move/resize event on first appearance of window having FULL_WINDOW_CONTENT property set

(cherry picked from commit a6ea081ba2)
This commit is contained in:
Alexey Ushakov
2021-03-23 00:44:30 +03:00
committed by jbrbot
parent d85bb2aef5
commit d915e70dbb
2 changed files with 10 additions and 0 deletions

View File

@@ -46,6 +46,7 @@
jint preFullScreenLevel;
NSRect standardFrame;
BOOL isMinimizing;
BOOL isJustCreated;
}
// An instance of either AWTWindow_Normal or AWTWindow_Panel
@@ -61,6 +62,7 @@
@property (nonatomic) jint preFullScreenLevel;
@property (nonatomic) NSRect standardFrame;
@property (nonatomic) BOOL isMinimizing;
@property (nonatomic) BOOL isJustCreated;
- (id) initWithPlatformWindow:(jobject)javaPlatformWindow
ownerWindow:owner

View File

@@ -250,6 +250,7 @@ AWT_NS_WINDOW_IMPLEMENTATION
@synthesize preFullScreenLevel;
@synthesize standardFrame;
@synthesize isMinimizing;
@synthesize isJustCreated;
- (void) updateMinMaxSize:(BOOL)resizable {
if (resizable) {
@@ -403,6 +404,8 @@ AWT_ASSERT_APPKIT_THREAD;
[self.nsWindow setStyleMask: NSWindowStyleMaskDocModalWindow];
}
self.isJustCreated = YES;
return self;
}
@@ -1164,6 +1167,11 @@ JNI_COCOA_ENTER(env);
nsWindow.contentView.frame = contentFrame;
resized = YES;
}
if (window.isJustCreated) {
// Perform Move/Resize event for just created windows
resized = YES;
window.isJustCreated = NO;
}
}
// resets the NSWindow's style mask if the mask intersects any of those bits