JBR-5438 Fix window bounds in XWM#setShellResizable

(cherry picked from commit c51695d830dd3daf0021180ee974a3c11d03b6a8)
This commit is contained in:
ngubarkov
2023-03-29 16:22:04 +03:00
committed by Nikita Gubarkov
parent 4b1ad2e7fe
commit b695a707eb

View File

@@ -1072,10 +1072,7 @@ final class XWM
try {
Rectangle shellBounds;
if (getWMID() != UNITY_COMPIZ_WM) {
Insets insets = window.getRealInsets();
shellBounds = window.getShellBounds();
shellBounds.translate(-insets.left,
-insets.top);
shellBounds = window.getBounds();
} else {
shellBounds = window.getDimensions().getScreenBounds();
}