8214579: JFrame does not paint content in XVFB / X11vnc environment
authordmarkov
Mon, 20 May 2019 15:42:20 +0100
changeset 55174 c53905e7dc57
parent 55173 f36cee599800
child 55175 e2a90479dfe5
8214579: JFrame does not paint content in XVFB / X11vnc environment Reviewed-by: prr
src/java.desktop/unix/classes/sun/java2d/xr/XRSurfaceData.java
--- a/src/java.desktop/unix/classes/sun/java2d/xr/XRSurfaceData.java	Mon May 20 11:03:05 2019 +0530
+++ b/src/java.desktop/unix/classes/sun/java2d/xr/XRSurfaceData.java	Mon May 20 15:42:20 2019 +0100
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2010, 2019, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -54,6 +54,7 @@
 import sun.java2d.pipe.ShapeDrawPipe;
 import sun.java2d.pipe.TextPipe;
 import sun.java2d.pipe.ValidatePipe;
+import sun.java2d.x11.X11SurfaceData;
 import sun.java2d.x11.XSurfaceData;
 import sun.font.FontManagerNativeLibrary;
 
@@ -243,7 +244,7 @@
      */
     public static XRWindowSurfaceData createData(X11ComponentPeer peer) {
         XRGraphicsConfig gc = getGC(peer);
-        return new XRWindowSurfaceData(peer, gc, gc.getSurfaceType());
+        return new XRWindowSurfaceData(peer, gc, X11SurfaceData.getSurfaceType(gc, Transparency.OPAQUE));
     }
 
     /**