mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-106544 Visual glitch: Fullscreen and maximized windows on the same screen
This commit is contained in:
@@ -140,6 +140,7 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
|
||||
return;
|
||||
}
|
||||
|
||||
myRootPane.setBorder(null);
|
||||
boolean isNotClassic = Boolean.parseBoolean(String.valueOf(Toolkit.getDefaultToolkit().getDesktopProperty("win.xpstyle.themeActive")));
|
||||
if (isNotClassic && (state & MAXIMIZED_BOTH) != 0) {
|
||||
IdeFrame[] projectFrames = WindowManager.getInstance().getAllProjectFrames();
|
||||
@@ -159,9 +160,6 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
myRootPane.setBorder(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected IdeRootPane createRootPane(ActionManagerEx actionManager,
|
||||
@@ -536,6 +534,10 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
|
||||
if (myFrameDecorator != null) {
|
||||
myFrameDecorator.toggleFullScreen(state);
|
||||
}
|
||||
IdeFrame[] frames = WindowManager.getInstance().getAllProjectFrames();
|
||||
for (IdeFrame frame : frames) {
|
||||
((IdeFrameImpl)frame).updateBorder();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user