< prev index next >
src/java.desktop/unix/classes/sun/awt/X11/XWM.java
Print this page
*** 1027,1038 ****
if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
insLog.fine("Setting shell resizable " + window);
}
XToolkit.awtLock();
try {
! Rectangle shellBounds = window.getShellBounds();
! shellBounds.translate(-window.currentInsets.left, -window.currentInsets.top);
window.updateSizeHints(window.getDimensions());
requestWMExtents(window.getWindow());
XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(),
window.getShell(),
window.scaleUp(shellBounds.x),
--- 1027,1044 ----
if (insLog.isLoggable(PlatformLogger.Level.FINE)) {
insLog.fine("Setting shell resizable " + window);
}
XToolkit.awtLock();
try {
! Rectangle shellBounds;
! if (getWMID() != UNITY_COMPIZ_WM) {
! shellBounds = window.getShellBounds();
! shellBounds.translate(-window.currentInsets.left,
! -window.currentInsets.top);
! } else {
! shellBounds = window.getDimensions().getScreenBounds();
! }
window.updateSizeHints(window.getDimensions());
requestWMExtents(window.getWindow());
XlibWrapper.XMoveResizeWindow(XToolkit.getDisplay(),
window.getShell(),
window.scaleUp(shellBounds.x),
< prev index next >