Abra o terminal e digite o comando:

gsettings set org.gnome.desktop.wm.preferences button-layout 'menu:minimize,maximize,close'