--- old/src/java.desktop/unix/classes/sun/awt/X11/XWM.java 2016-10-18 16:06:44.581798825 +0300 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XWM.java 2016-10-18 16:06:44.501798828 +0300 @@ -1029,8 +1029,14 @@ } XToolkit.awtLock(); try { - Rectangle shellBounds = window.getShellBounds(); - shellBounds.translate(-window.currentInsets.left, -window.currentInsets.top); + 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(),