src/share/classes/java/awt/GraphicsDevice.java
Print this page
*** 294,303 ****
--- 294,309 ----
Color bgColor = w.getBackground();
bgColor = new Color(bgColor.getRed(), bgColor.getGreen(),
bgColor.getBlue(), 255);
w.setBackground(bgColor);
}
+ // Check if this window is in fullscreen mode on another device.
+ final GraphicsConfiguration gc = w.getGraphicsConfiguration();
+ if (gc != null && gc.getDevice() != this
+ && gc.getDevice().getFullScreenWindow() == w) {
+ gc.getDevice().setFullScreenWindow(null);
+ }
}
if (fullScreenWindow != null && windowedModeBounds != null) {
// if the window went into fs mode before it was realized it may
// have (0,0) dimensions
if (windowedModeBounds.width == 0) windowedModeBounds.width = 1;