Comment #63 on issue 177 by ori... at yandex.ru: xmonad does not follow ICCCM and ignores WM_TAKE_FOCUS protocol http://code.google.com/p/xmonad/issues/detail?id=177 Even better! Just startupHook = takeTopFocus solves the problem with java menus.