< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java
Print this page
*** 856,870 ****
*
* When two screens overlap and the first contains a dock(*****), then
* _NET_WORKAREA may start at point x1,y1 and end at point x2,y2.
*/
@Override
! public Insets getScreenInsets(GraphicsConfiguration gc)
! {
! XNETProtocol netProto = XWM.getWM().getNETProtocol();
! if ((netProto == null) || !netProto.active())
! {
return super.getScreenInsets(gc);
}
XToolkit.awtLock();
try
--- 856,869 ----
*
* When two screens overlap and the first contains a dock(*****), then
* _NET_WORKAREA may start at point x1,y1 and end at point x2,y2.
*/
@Override
! public Insets getScreenInsets(final GraphicsConfiguration gc) {
! GraphicsDevice gd = gc.getDevice();
! XNETProtocol np = XWM.getWM().getNETProtocol();
! if (np == null || !(gd instanceof X11GraphicsDevice) || !np.active()) {
return super.getScreenInsets(gc);
}
XToolkit.awtLock();
try
< prev index next >