I've been having trouble running some games on steam, probably due to problems with xmonad (and my xmonad.hs). I run Xubuntu 12.04, and if I use Unity or Xfce then Steam and the games seem to work fine. However, when I use Xmonad as my window manager, I can't seem to run TF2 or Half-Life. When I click play, these games go to a full, black screen, and then seem to hang. I then either have to log out or kill steam. The steam client seems to work ok, and other games seem to work ok (I have tested SpaceChem and FTL).
This seems a bit different to other posts about Xmonad, since those users struggled to get Steam itself working. For me, steam works ok, as do some games, but not TF2 or Half-Life.
I would be very grateful if anyone has any idea how to change xmonad.hs to sort this out. Thanks.
Relevant (I think) parts of xmonad.hs:http://pastebin.com/x3dg8N8D