Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#57220 - [jre8-openjdk] Respect _JAVA_AWT_WM_NONREPARENTING ?

Attached to Project: Arch Linux
Opened by Leif Warner (pdxleif) - Wednesday, 24 January 2018, 22:18 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 31 January 2018, 01:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Guillaume ALAUX (galaux)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Is this patch still necessary on OpenJDK 8?
https://git.archlinux.org/svntogit/packages.git/tree/trunk/openjdk7_nonreparenting-wm.diff?h=packages/java7-openjdk#n27

I'm having issues with window focus in Java-based GUIs (IntelliJ) under XMonad. Adding setWMName "LG3D" seems to help, but that hasn't been necessary in the past after support for "export _JAVA_AWT_WM_NONREPARENTING=1" was added to the JDK.
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 31 January 2018, 01:14 GMT
Reason for closing:  Not a bug
Additional comments about closing:  This does not seem to be necessary for jdk8 after all.
Comment by loqs (loqs) - Thursday, 25 January 2018, 00:54 GMT Comment by Eli Schwartz (eschwartz) - Wednesday, 31 January 2018, 00:10 GMT
  • Field changed: Task Type (Support Request → Bug Report)
  • Field changed: Status (Unconfirmed → Assigned)
  • Task assigned to Guillaume ALAUX (galaux)
The fix that rendered the patch obsolete, as mentioned by loqs' link, is definitely not in openjdk8: http://hg.openjdk.java.net/jdk8/jdk8/jdk/file/tip/src/solaris/classes/sun/awt/X11/XWM.java

So it looks like this should be added to our openjdk 8 package as well...
Comment by loqs (loqs) - Wednesday, 31 January 2018, 00:51 GMT
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/tags jdk8u144-b01 is revision e95a13de2d36
http://hg.openjdk.java.net/jdk8u/jdk8u/jdk/file/e95a13de2d36/src/solaris/classes/sun/awt/X11/XWM.java#l598

I was not certain about that so I checked the source arch was pulling directly

$ git clone git://git.archlinux.org/svntogit/packages.git --single-branch --branch "packages/java8-openjdk"
$ cd packages/trunk/
$ makepkg -odd
$ grep awtWMNonReparenting src/jdk8u-jdk8u144-b01/jdk/src/solaris/classes/sun/awt/X11/XWM.java
static int awtWMNonReparenting = -1;
if (awtWMNonReparenting == -1) {
awtWMNonReparenting = (XToolkit.getEnv("_JAVA_AWT_WM_NONREPARENTING") != null) ? 1 : 0;
return (awtWMNonReparenting == 1 || XWM.getWMID() == XWM.COMPIZ_WM

Seems the patch is applied
Comment by Eli Schwartz (eschwartz) - Wednesday, 31 January 2018, 01:11 GMT
Huh... whoops. They have a very confusing mercurial setup...

Loading...