mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cleanup (bug reference updated)
This commit is contained in:
@@ -165,7 +165,7 @@ public class ScreenUtil {
|
||||
}
|
||||
|
||||
private static Insets calcInsets(GraphicsConfiguration gc) {
|
||||
if (Patches.SUN_BUG_ID_9000030 && GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().length > 1) {
|
||||
if (Patches.SUN_BUG_ID_7172665 && GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices().length > 1) {
|
||||
return new Insets(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -113,9 +113,9 @@ public class Patches {
|
||||
|
||||
/**
|
||||
* Java 7 incorrectly calculates screen insets on multi-monitor X Window configurations.
|
||||
* See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=9000030.
|
||||
* See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7172665.
|
||||
*/
|
||||
public static final boolean SUN_BUG_ID_9000030 = SystemInfo.isXWindow && SystemInfo.isJavaVersionAtLeast("1.7");
|
||||
public static final boolean SUN_BUG_ID_7172665 = SystemInfo.isXWindow && SystemInfo.isJavaVersionAtLeast("1.7");
|
||||
|
||||
/**
|
||||
* On some WMs modal dialogs may show behind full screen window.
|
||||
|
||||
Reference in New Issue
Block a user