8386991: Insets are incorrectly set in newer Gnome versions#3235
8386991: Insets are incorrectly set in newer Gnome versions#3235satyenme wants to merge 1 commit into
Conversation
Reviewed-by: serb
|
👋 Welcome back ssubramaniam! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue from the original commit. |
|
|
|
/approval request for backport of "JDK-8386991: Insets are incorrectly set in newer Gnome versions" to 11 This fix addresses incorrect backport of JDK-8305825. Details of the missing code is summarized in the JBS issue description. Testing: tier 1 and 2 tests and SimpleTest.java on original JBS issue. Risk: minimal due to only affecting headful linux environments using mutter. Logically, code only adjusts inset size, with no expected change in functionality. Change is effectively already present in 17 and above. |
Backporting 8386991: Insets are incorrectly set in newer Gnome versions from 17 to 11. Patch is clean.
The original backport of JDK-8305825 missed changes to src/java.desktop/unix/classes/sun/awt/X11/XDecoratedPeer.java for JDK 17 and below. For 21 and above, JDK-8305825 reuses an if statement introduced by JDK-8267307. For 17 and below, since JDK-8267307 wasn't backported/present, a similar if statement should have been added just without the JDK-8267307-specific condition.
This leads to the SimpleTest.java test included on that JBS issue continuing to fail on Ubuntu 24.04.
This patch adds in the relevant code from the original JDK-8305825 patch to ensure the test passes and windows are rendered with the correct insets and size.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/3235/head:pull/3235$ git checkout pull/3235Update a local copy of the PR:
$ git checkout pull/3235$ git pull https://git.openjdk.org/jdk11u-dev.git pull/3235/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 3235View PR using the GUI difftool:
$ git pr show -t 3235Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/3235.diff
Using Webrev
Link to Webrev Comment