Hopefully fix JRE issue in XMonad where JRE fails to do the right thing as usual. Credit to Ed McDonald for spoting this issue.