From c4e9893ac467732b7e4196123aba3b9368fc0445 Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Fri, 22 Nov 2013 11:42:11 +0100 Subject: [PATCH] Cleanup (bug reference updated) --- platform/platform-api/src/com/intellij/ui/ScreenUtil.java | 2 +- platform/util/src/com/intellij/Patches.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-api/src/com/intellij/ui/ScreenUtil.java b/platform/platform-api/src/com/intellij/ui/ScreenUtil.java index 00300b390604..76bb6f25e357 100644 --- a/platform/platform-api/src/com/intellij/ui/ScreenUtil.java +++ b/platform/platform-api/src/com/intellij/ui/ScreenUtil.java @@ -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); } diff --git a/platform/util/src/com/intellij/Patches.java b/platform/util/src/com/intellij/Patches.java index 055a673ce675..40c517641ba4 100644 --- a/platform/util/src/com/intellij/Patches.java +++ b/platform/util/src/com/intellij/Patches.java @@ -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.