--- old/src/java.desktop/unix/classes/sun/awt/X11/XEmbedClientHelper.java 2015-11-06 02:13:03.307434999 -0500 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XEmbedClientHelper.java 2015-11-06 02:13:03.151357001 -0500 @@ -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())) {