< prev index next >

src/java.desktop/unix/classes/sun/awt/X11GraphicsDevice.java

Print this page

        

*** 297,311 **** return xrandrExtSupported.booleanValue(); } @Override public boolean isFullScreenSupported() { ! // REMIND: for now we will only allow fullscreen exclusive mode ! // on the primary screen; we could change this behavior slightly ! // in the future by allowing only one screen to be in fullscreen ! // exclusive mode at any given time... ! boolean fsAvailable = (screen == 0) && isXrandrExtensionSupported(); if (fsAvailable) { SecurityManager security = System.getSecurityManager(); if (security != null) { if (fullScreenExclusivePermission == null) { fullScreenExclusivePermission = --- 297,307 ---- return xrandrExtSupported.booleanValue(); } @Override public boolean isFullScreenSupported() { ! boolean fsAvailable = isXrandrExtensionSupported(); if (fsAvailable) { SecurityManager security = System.getSecurityManager(); if (security != null) { if (fullScreenExclusivePermission == null) { fullScreenExclusivePermission =
*** 327,346 **** } private static void enterFullScreenExclusive(Window w) { X11ComponentPeer peer = AWTAccessor.getComponentAccessor().getPeer(w); if (peer != null) { ! enterFullScreenExclusive(peer.getContentWindow()); peer.setFullScreenExclusiveModeState(true); } } private static void exitFullScreenExclusive(Window w) { X11ComponentPeer peer = AWTAccessor.getComponentAccessor().getPeer(w); if (peer != null) { peer.setFullScreenExclusiveModeState(false); ! exitFullScreenExclusive(peer.getContentWindow()); } } @Override public synchronized void setFullScreenWindow(Window w) { --- 323,342 ---- } private static void enterFullScreenExclusive(Window w) { X11ComponentPeer peer = AWTAccessor.getComponentAccessor().getPeer(w); if (peer != null) { ! enterFullScreenExclusive(peer.getWindow()); peer.setFullScreenExclusiveModeState(true); } } private static void exitFullScreenExclusive(Window w) { X11ComponentPeer peer = AWTAccessor.getComponentAccessor().getPeer(w); if (peer != null) { peer.setFullScreenExclusiveModeState(false); ! exitFullScreenExclusive(peer.getWindow()); } } @Override public synchronized void setFullScreenWindow(Window w) {
< prev index next >