wmname prints/sets the window manager name property of the root window similar to how hostname(1) behaves.
wmname is a nice utility to fix problems with JDK versions and other broken programs assuming a reparenting window manager for instance.
You can browse the source code or get a copy using the following command:
git clone https://git.suckless.org/wmname
The following command prints the window manager name, if any:
This is helpful when attempting to run java swing(broken) applications, it makes them think they are running through the looking glass and behave as expected. The following command sets the window manager name, e.g.
; wmname LG3D