jdk/src/solaris/classes/sun/awt/X11GraphicsDevice.java
changeset 11083 34aa99149ff2
parent 7668 d4a77089c587
child 23010 6dadb192ad81
--- a/jdk/src/solaris/classes/sun/awt/X11GraphicsDevice.java	Tue Nov 08 14:36:50 2011 +0300
+++ b/jdk/src/solaris/classes/sun/awt/X11GraphicsDevice.java	Wed Nov 09 13:43:39 2011 +0300
@@ -487,14 +487,9 @@
      * X11GraphicsEnvironment when the display mode has been changed.
      */
     public synchronized void displayChanged() {
-        // reset the list of configs (and default config)
-        defaultConfig = null;
-        configs = null;
-        doubleBufferVisuals = null;
-
-        // reset the native data structures associated with this device (they
-        // will be reinitialized when the GraphicsConfigs are configured)
-        resetNativeData(screen);
+        // On X11 the visuals do not change, and therefore we don't need
+        // to reset the defaultConfig, config, doubleBufferVisuals,
+        // neither do we need to reset the native data.
 
         // pass on to all top-level windows on this screen
         topLevels.notifyListeners();