mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (outdated anti-focus-stealing hack dropped)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user