jdk/src/solaris/classes/sun/awt/X11/XWindow.java
changeset 21278 ef8a3a2a72f2
parent 21270 8a0fc12b81a2
child 22584 eed64ee05369
child 23248 3418855fb2c5
equal deleted inserted replaced
21277:bd380b80f9ea 21278:ef8a3a2a72f2
   248         surfaceData = graphicsConfig.createSurfaceData(this);
   248         surfaceData = graphicsConfig.createSurfaceData(this);
   249         Color c;
   249         Color c;
   250         if (target != null && (c = target.getBackground()) != null) {
   250         if (target != null && (c = target.getBackground()) != null) {
   251             // We need a version of setBackground that does not call repaint !!
   251             // We need a version of setBackground that does not call repaint !!
   252             // and one that does not get overridden. The problem is that in postInit
   252             // and one that does not get overridden. The problem is that in postInit
   253             // we call setBackground and we dont have all the stuff initialized to
   253             // we call setBackground and we don't have all the stuff initialized to
   254             // do a full paint for most peers. So we cannot call setBackground in postInit.
   254             // do a full paint for most peers. So we cannot call setBackground in postInit.
   255             // instead we need to call xSetBackground.
   255             // instead we need to call xSetBackground.
   256             xSetBackground(c);
   256             xSetBackground(c);
   257         }
   257         }
   258     }
   258     }
   434         return true;
   434         return true;
   435     }
   435     }
   436 
   436 
   437     // We need a version of setBackground that does not call repaint !!
   437     // We need a version of setBackground that does not call repaint !!
   438     // and one that does not get overridden. The problem is that in postInit
   438     // and one that does not get overridden. The problem is that in postInit
   439     // we call setBackground and we dont have all the stuff initialized to
   439     // we call setBackground and we don't have all the stuff initialized to
   440     // do a full paint for most peers. So we cannot call setBackground in postInit.
   440     // do a full paint for most peers. So we cannot call setBackground in postInit.
   441     final public void xSetBackground(Color c) {
   441     final public void xSetBackground(Color c) {
   442         XToolkit.awtLock();
   442         XToolkit.awtLock();
   443         try {
   443         try {
   444             winBackground(c);
   444             winBackground(c);