--- old/src/java.desktop/unix/classes/sun/awt/X11/XEmbedClientHelper.java 2015-10-05 07:32:38.671038651 -0400 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XEmbedClientHelper.java 2015-10-05 07:32:38.471038656 -0400 @@ -182,7 +182,7 @@ embedded.notifyStopped(); // check if newParent is a root window X11GraphicsConfig gc = (X11GraphicsConfig)embedded.getGraphicsConfiguration(); - X11GraphicsDevice gd = (X11GraphicsDevice)gc.getDevice(); + X11GraphicsDevice gd = gc.getDevice(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) {