Cleanup (outdated anti-focus-stealing hack dropped)

This commit is contained in:
Roman Shevchenko
2014-11-27 19:19:53 +01:00
parent 093d17cc8b
commit 36ea8a7d0a
2 changed files with 1 additions and 18 deletions
@@ -77,8 +77,6 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
private static boolean myUpdatingTitle;
private static String xdgCurrentDesktop = System.getenv("XDG_CURRENT_DESKTOP");
private String myTitle;
private String myFileTitle;
private File myCurrentFile;
@@ -116,10 +114,6 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
myBalloonLayout = new BalloonLayoutImpl(myRootPane, new Insets(8, 8, 8, 8));
if (!Registry.is("ide.windowSystem.focusAppOnStartup") && !isThereActiveFrame()) {
setFocusableWindowState(false);
}
// to show window thumbnail under Macs
// http://lists.apple.com/archives/java-dev/2009/Dec/msg00240.html
if (SystemInfo.isMac) setIconImage(null);
@@ -206,22 +200,12 @@ public class IdeFrameImpl extends JFrame implements IdeFrameEx, DataProvider {
return null;
}
public static boolean isThereActiveFrame() {
Frame[] all = Frame.getFrames();
for (Frame each : all) {
if (each.isActive()) {
return true;
}
}
return false;
}
@SuppressWarnings({"deprecation", "SSBasedInspection"})
@Override
public void show() {
super.show();
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
setFocusableWindowState(true);
}
@@ -85,7 +85,6 @@ ide.appIcon.requestAttention=true
ide.windowSystem.hScrollChars=5
ide.windowSystem.vScrollChars=5
ide.windowSystem.focusAppOnStartup=true
ide.windowSystem.autoShowProcessPopup=false
ide.windowSystem.showListItemsPopup=true
ide.windowSystem.asyncSplitters=true