[xmonad] darcs patch: Split out the X event get function from xmonad.