1. Open up the gconf-editor tool
(
Open a terminal and type
$ gconf-editor
).2. Navigate to apps-->Metacity --> general.
3. Double click the button_layout key.
4. Change the value of this key to menu:maximize,minimize,close.
5. Click OK and the change will occur immediately.
You can now close the gconf-editor tool.