mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-115412 Diff window is minimized after the appearance
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2009 JetBrains s.r.o.
|
||||
* Copyright 2000-2013 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -74,6 +74,9 @@ public class FrameWrapper implements Disposable, DataProvider {
|
||||
private boolean myIsDialog;
|
||||
private boolean myImageWasChanged;
|
||||
|
||||
//Skip restoration of MAXIMIZED_BOTH_PROPERTY
|
||||
private static final boolean WORKAROUND_FOR_JDK_8007219 = SystemInfo.isMac && SystemInfo.isOracleJvm;
|
||||
|
||||
public FrameWrapper(Project project) {
|
||||
this(project, null);
|
||||
}
|
||||
@@ -163,7 +166,7 @@ public class FrameWrapper implements Disposable, DataProvider {
|
||||
}
|
||||
if (myImageWasChanged) {
|
||||
frame.setIconImage(myImage);
|
||||
}
|
||||
}
|
||||
else {
|
||||
AppUIUtil.updateWindowIcon(myFrame);
|
||||
}
|
||||
@@ -318,7 +321,7 @@ public class FrameWrapper implements Disposable, DataProvider {
|
||||
}
|
||||
}
|
||||
|
||||
if (extendedState == Frame.MAXIMIZED_BOTH && frame instanceof JFrame) {
|
||||
if (!WORKAROUND_FOR_JDK_8007219 && extendedState == Frame.MAXIMIZED_BOTH && frame instanceof JFrame) {
|
||||
((JFrame)frame).setExtendedState(extendedState);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user