I was looking for a way to change the window button order on the new Raspberry Pi OS Debian Bullseye.The Openbox configuration doesn't work for this since the new realse uses Mutter as the window manager. Then I found this termianl command that changes the button order in Mutter
gsettings set org.gnome.desktop.wm.preferences button-layout "close,minimize,maximize"