8131752: [Regression] Test java/awt/GraphicsDevice/CheckDisplayModes.java fails
authorazvegint
Thu, 23 Jul 2015 15:12:32 +0300
changeset 32114 73945c07ea9f
parent 32113 7e5c0719e9a9
child 32115 e686c75fd10a
8131752: [Regression] Test java/awt/GraphicsDevice/CheckDisplayModes.java fails Reviewed-by: alexsch, serb
jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java
--- a/jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java	Wed Jul 22 22:33:12 2015 +0300
+++ b/jdk/src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java	Thu Jul 23 15:12:32 2015 +0300
@@ -316,6 +316,7 @@
     @Override
     public boolean isDisplayChangeSupported() {
         return (isFullScreenSupported()
+                && (getFullScreenWindow() != null)
                 && !((X11GraphicsEnvironment) GraphicsEnvironment
                         .getLocalGraphicsEnvironment()).runningXinerama());
     }