> which means that the session-controlling process is the xterm,
> not the window manager.
Note that all "DE"s have a dedicated "session process", so you can kill
the window manager and it won't terminate your session.
E.g. I use XFCE and haven't bothered to arrange for ctwm to be started
properly, so every time I log in I have to do the funny dance:
pkill xfwm4; ctwm&
and sometimes I have to do it a few times because the DE tries to
restart xfwm4 automatically, so it's a race between `xfwm4` and `ctwm`.
Stefan