Issue with Xmonad and Java GUI

Posted on May 14, 2020
Tags: Xmonad

I came across a problem when using a GUI Java program under Xmonad, the interface was unusable. If I understand correctly it is because Java windows need to have a name, and that condition fail under most Window Managers.

Anyway, the solution is to add these two lines to your xmonad.hs1 :

import XMonad.Hooks.SetWMName
startupHook = setWMName "LG3D"

  1. http://hackage.haskell.org/package/xmonad-contrib-0.16/docs/XMonad-Hooks-SetWMName.html↩︎