I have an tcl script running in MWM and it starts xterm terminals with: .menu.utils.m add command -label {Xterm} -command {        exec xterm -sb -T Xterm -sl 10000 -e su - int &  }Doing this, the terminals can't be closed using Alt+F4 or the Menu bar. Is there a way to fix this?
XTerm not closing using -e option
xterm
So what I ended up doing in the end was finding the focused window and xkilling it in the following way: f.exec xkill -id `xdpyinfo | grep focus | awk '{print $3}' | tr -d ','`