Still seeing Java gray screens after applying patch from Issue 177

Dear Creators/Users of the most amazing window manager in all of cyberspace, I was running the xmonad & xmonad contrib from the ubuntu repos but java Charles web debugging proxy gave me gray screens. http://www.charlesproxy.com/ In order to run Java apps, I downloaded and patched XMonad 10.1 http://code.google.com/p/xmonad/issues/detail?id=177#makechanges I put the new compiled xmonad in my ~/.cabal/bin folder and linked /usr/bin/xmonad to ~/.cabal/bin/xmonad Without restarting X11, I did xmonad --recompile and still see grey screens when starting Java apps. I have Ubuntu 12.04 64 bit with sun java 1.7.0_09. I'm using Gnome3 with XMonad inside. my xmonad.hs is here http://pastebin.com/tgEBpEui my ghc-pkg list is here http://pastebin.com/wg6L8vdA I tried adding import XMonad.Hooks.ICCCMFocus to my xmonad.hs but that caused errors. I have the right xmonad version: ➜ .xmonad xmonad --version xmonad 0.10.1 I have cat named chloe: https://www.facebook.com/catnamedchloe ghc-pkg check doesn't seem to be erroring: http://pastebin.com/mRhjnYcf Is there something else I should try? Thank you for your time. -Sean http://seanneilan.com/

On Sat, Nov 3, 2012 at 1:29 PM, Sean Neilan
Without restarting X11, I did xmonad --recompile and still see grey screens when starting Java apps.
Last I'd heard, recent Java 7 was still broken in some way that ICCCMFocus can't fix. But ICCCMFocus only addresses focus issues, not gray windows; that part is generally dealt with by forcing the window manager name to one that is recognized as non-reparenting, to turn off a bit of questionable design in the JVM. (I had been under the impression this wasn't necessary in Java 7, but I don't know for certain.) That said, try using EwmhDesktops (which adds in the known gray-window fixes automatically) or adding (setWMName "LG3D") to the StartupHook (or myStartupHook in your config). -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

Hot damn! That worked. I didn't have to use Ewmh. Just set the WMName to
LG3D.
Thank you!
On Sat, Nov 3, 2012 at 12:49 PM, Brandon Allbery
On Sat, Nov 3, 2012 at 1:29 PM, Sean Neilan
wrote: Without restarting X11, I did xmonad --recompile and still see grey screens when starting Java apps.
Last I'd heard, recent Java 7 was still broken in some way that ICCCMFocus can't fix. But ICCCMFocus only addresses focus issues, not gray windows; that part is generally dealt with by forcing the window manager name to one that is recognized as non-reparenting, to turn off a bit of questionable design in the JVM. (I had been under the impression this wasn't necessary in Java 7, but I don't know for certain.)
That said, try using EwmhDesktops (which adds in the known gray-window fixes automatically) or adding (setWMName "LG3D") to the StartupHook (or myStartupHook in your config).
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

On Sat, Nov 3, 2012 at 8:33 PM, Sean Neilan
Hot damn! That worked. I didn't have to use Ewmh. Just set the WMName to LG3D.
That's interesting; I had hoped they'd moved past that hardcoded list. :( On the other hand, there is only one standard protocol I'm aware of that exposes the difference between reparenting and nonreparenting window managers in any way, and even with EwmhDesktops we don't support it. (And that's not its real purpose, so if we obeyed the protocol things might still be broken.) -- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

Actually, I forgot to mention, I tried your solution with Java 7 which
didn't work. I had to downgrade to Java 6. I can't conclude that they still
have a hardcoded list.
Yeah, another mismatch between standards & practices. Hooray!
On Sat, Nov 3, 2012 at 7:45 PM, Brandon Allbery
On Sat, Nov 3, 2012 at 8:33 PM, Sean Neilan
wrote: Hot damn! That worked. I didn't have to use Ewmh. Just set the WMName to LG3D.
That's interesting; I had hoped they'd moved past that hardcoded list. :( On the other hand, there is only one standard protocol I'm aware of that exposes the difference between reparenting and nonreparenting window managers in any way, and even with EwmhDesktops we don't support it. (And that's not its real purpose, so if we obeyed the protocol things might still be broken.)
-- brandon s allbery kf8nh sine nomine associates allbery.b@gmail.com ballbery@sinenomine.net unix/linux, openafs, kerberos, infrastructure http://sinenomine.net
participants (2)
-
Brandon Allbery
-
Sean Neilan