To just remove the closing X icon is not a job for `x11` or the `xserver` but for the window-manager, in this case `openbox`. In the `/etc/xdg/openbox/rc.xml` or the `~/.config/openbox/rc.xml` is a tag called 'titleLayout'. The default value is 'NLIMC'. Here a list of what the characters mean from the docs:
available characters are NDSLIMC, each can occur at most once.
N: window icon
L: window label (AKA title).
I: iconify
M: maximize
C: close
S: shade (roll up/down)
D: omnipresent (on all desktops).
So if you want to remove the closing X icon just remove the 'C' from the `titleLayout` tags value. The result would be 'NLIM'.
If you don't want to remove the icon but rather just move it to the other side you could write 'CNLIM'. Just move the 'C' to the other side of the string.