Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 339741

Summary: [PATCH] dev-java/icedtea-6.* support non-reparenting window managers (e.g. x11-wm/awesome)
Product: Gentoo Linux Reporter: Jeff Kowalczyk <jeff.kowalczyk>
Component: [OLD] DevelopmentAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: anton.kochkov, fabianoengler, gnu_andrew
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://awesome.naquadah.org/wiki/Problems_with_Java#Use_OpenJDK_With_Vendor_Fix
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 247140    

Description Jeff Kowalczyk 2010-10-04 19:52:55 UTC
(From Debian Bug) "It is an long standing bug that java programs come with empty gray windows when run in non-reparenting window managers."

I encounter this when trying to use Clojure with sun-jdk-1.6.0.21 on Gentoo ~amd64. Any code that starts a swing window usually results in a grey blank window, no rendered content.

Per the links below, I install a utility wmname and trick sun-jdk into thinking that I'm using a hardcoded recognized wmname LG3D, which fixed the problem completely.

The patch from arch linux would seem to be applicable for Gentoo, and if applied would greatly improve the Java environment for users of non-reparenting window managers such as x11-wm/awesome.

http://awesome.naquadah.org/wiki/Problems_with_Java#Use_OpenJDK_With_Vendor_Fix

FS#15674 - [openjdk6] Include patch for non-reparenting WMs in openjdk builds for repos 
https://bugs.archlinux.org/task/15674

java programs with empty gray windows
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508650

Reproducible: Always
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-10-12 21:30:51 UTC
Changing summary to icedtea, there's no way we can patch sun-jdk.
However, upstream patch inclusion (icedtea, if not openjdk) would be better than distro-specific patching. Have the other distros tried that?
Comment 2 Ralph Sennhauser (RETIRED) gentoo-dev 2012-04-08 14:30:00 UTC
*** Bug 388405 has been marked as a duplicate of this bug. ***
Comment 3 Ralph Sennhauser (RETIRED) gentoo-dev 2012-04-08 14:38:44 UTC
The sun bug database claims this to be fixed in recent 1.6 and 1.7. Is this still an issue with >=icedtea-6.1.11.1? If so which WM and icedtea version exactly. At least one of the WMs claimed to be broken always worked for me.
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2012-07-25 07:08:13 UTC
*** Bug 427992 has been marked as a duplicate of this bug. ***
Comment 5 Anton Kochkov 2012-07-25 07:31:39 UTC
Still exist for awesome and dev-java/icedtea-bin-7.2.2.1
Comment 6 Patrice Clement gentoo-dev 2015-08-21 07:28:52 UTC
Marking this bug as FIXED.