mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user