Skip to content

Commit

Permalink
8305825: getBounds API returns wrong value resulting in multiple Regr…
Browse files Browse the repository at this point in the history
…ession Test Failures on Ubuntu 23.04
  • Loading branch information
azvegint committed Dec 4, 2023
1 parent 65be5e0 commit 328d33f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,8 @@ public void handlePropertyNotify(XEvent xev) {
|| ev.get_atom() == XWM.XA_NET_FRAME_EXTENTS.getAtom())
{
if (XWM.getWMID() != XWM.UNITY_COMPIZ_WM) {
if (getMWMDecorTitleProperty().isPresent()) {
if ((XWM.getWMID() == XWM.MUTTER_WM && !isTargetUndecorated() && isVisible())
|| getMWMDecorTitleProperty().isPresent()) {
// Insets might have changed "in-flight" if that property
// is present, so we need to get the actual values of
// insets from the WM and propagate them through all the
Expand Down
4 changes: 4 additions & 0 deletions src/java.desktop/unix/classes/sun/awt/X11/XWM.java
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,9 @@ Insets guessInsets(XDecoratedPeer window) {
case UNITY_COMPIZ_WM:
res = new Insets(28, 1, 1, 1);
break;
case MUTTER_WM:
res = new Insets(37, 0, 0, 0);
break;
case MOTIF_WM:
case OPENLOOK_WM:
default:
Expand All @@ -1380,6 +1383,7 @@ Insets guessInsets(XDecoratedPeer window) {
}
return res;
}

/*
* Some buggy WMs ignore window gravity when processing
* ConfigureRequest and position window as if the gravity is Static.
Expand Down

0 comments on commit 328d33f

Please sign in to comment.