Cleanup (bug reference updated)

This commit is contained in:
Roman Shevchenko
2013-11-22 22:02:07 +01:00
parent a0c7d51f0e
commit c4e9893ac4
2 changed files with 3 additions and 3 deletions
@@ -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);
}
+2 -2
View File
@@ -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.