Java Code Examples for sun.awt.X11GraphicsConfig#getDevice()
The following examples show how to use
sun.awt.X11GraphicsConfig#getDevice() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XEmbedClientHelper.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 2
Source File: XEmbedClientHelper.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 3
Source File: XEmbedClientHelper.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 4
Source File: XEmbedClientHelper.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 5
Source File: XEmbedClientHelper.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 6
Source File: XEmbedClientHelper.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); if (active) { // unregister accelerators, etc. for old parent embedded.notifyStopped(); // check if newParent is a root window X11GraphicsConfig gc = (X11GraphicsConfig)embedded.getGraphicsConfiguration(); X11GraphicsDevice gd = gc.getDevice(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 7
Source File: XEmbedClientHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 8
Source File: XEmbedClientHelper.java From hottub with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 9
Source File: XEmbedClientHelper.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 10
Source File: XEmbedClientHelper.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 11
Source File: XEmbedClientHelper.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 12
Source File: XEmbedClientHelper.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }
Example 13
Source File: XEmbedClientHelper.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public void handleReparentNotify(XEvent xev) { XReparentEvent re = xev.get_xreparent(); long newParent = re.get_parent(); 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(); if ((newParent == XlibUtil.getRootWindow(gd.getScreen())) || (newParent == XToolkit.getDefaultRootWindow())) { // reparenting to root means XEmbed termination active = false; } else { // continue XEmbed with a new parent server = newParent; embedded.notifyStarted(); } } }