After upgrading to Ubuntu 10.4 LTS you might notice that the window buttons are left aligned. After browsing some forums I found a solution to move them back to the right:
run gconf-editor from terminal or Alt-F2, go to
apps - metacity - general
and set
button_layout
to
menu:minimize,maximize,close
Hit OK and the buttons are right aligned
Update: Shortcut:
gconftool-2 -s /apps/metacity/general/button_layout -t String "menu:minimize,maximize,close"