[followup] Do not set bounds on IdeFrame when it's maximized

This commit is contained in:
Anton Tarasov
2017-11-16 17:32:09 +03:00
parent da369b4f8e
commit 31c821d365
@@ -516,7 +516,14 @@ public final class WindowManagerImpl extends WindowManagerEx implements NamedCom
myDefaultFrameInfo.setBounds(FrameBoundsConverter.convertFromDeviceSpace(rawBounds));
}
updateFrameBounds(frame);
if (!(FrameState.isMaximized(frame.getExtendedState()) || FrameState.isFullScreen(frame)) ||
!FrameState.isMaximized(myDefaultFrameInfo.getExtendedState())) // going to quit maximized
{
Rectangle bounds = myDefaultFrameInfo.getBounds();
if (bounds != null) {
frame.setBounds(bounds);
}
}
frame.setExtendedState(myDefaultFrameInfo.getExtendedState());
frame.setProject(project);