JBR-5438 Fix window bounds in XWM#setShellResizable

(cherry picked from commit 0aee99ac703f3b360277293e6e7a2e1aadfaba33)
(cherry picked from commit 637e8e473e)
This commit is contained in:
ngubarkov
2023-03-29 16:22:04 +03:00
committed by jbrbot
parent 1ad84e6133
commit e9c7c28a0e

View File

@@ -1077,10 +1077,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();
}