< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XEmbedClientHelper.java
Print this page
@@ -180,11 +180,11 @@
if (active) {
// unregister accelerators, etc. for old parent
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()))
{
// reparenting to root means XEmbed termination
active = false;
< prev index next >