have attached my xmonad.hs file. Note that my config is based on gnomeConfig,
You are overriding logHook instead of appending to it (compare the logHook in myGnomeWithXmobarConfig with your startupHook and handleEventHook). Since 90% of what ewmh does is in logHook, you've effectively disabled ewmh.