I’ve tried this, but after switching to right side the “close” button disappeared. Fixed with gconf-editor. Values I used are; gconftool -s /apps/metacity/general/button_layout -t string “menu:maximize,minimize,close,spacer”
Hope it helps.
T.