Kendall,
AWT_TOOLKIT=MToolkit does not work well and introduce many problems to java apps, to solve the gray window problem use just the setWMName workaround.
There's another known problem with java issue 177, java apps appear to receive focus but keyboard doesn't work until user clicks on the window.
Have not applied the patch yet, but it seems to solve this.

Henrique G. Abreu

On Wed, Apr 1, 2009 at 14:46, Kendall Shaw <kshaw@kendallshaw.com> wrote:
I think the problem I experienced is a result of setting AWT_TOOLKIT=MToolkit. I noticed that I get the same non-working keyboard in whatever KDE's window manager is. Unsetting that environment variable, I have not had the non-working keyboard in xmonad so far.

So, I first set AWT_TOOLKIT which fixed the grey window problem. Then I tried setting setWMName to LG3D in EwmhDesktops.hs, but left AWT_TOOLKIT set, which seems to cause the non-working keyboard problem.

Kendall
_______________________________________________
xmonad mailing list
xmonad@haskell.org
http://www.haskell.org/mailman/listinfo/xmonad