Xmonad not regaining focus for IntelliJ

When using GUIs designed with Java Swing, like IntelliJ Idea, the once the focus changes it is lost and cannot be regained. I.e. you can’t type again.

In xmonad.hs you need to add these:

import XMonad.Hooks.SetWMName
import XMonad.Hooks.ICCCMFocus
...
setWMName "LG3D"
...
logHook = takeTopFocus <+> dynamicLogWithPP xmobarPP {

Refer to my xmonad on github.

Leave a Reply

Your email address will not be published. Required fields are marked *