https://help.ubuntu.com/community/CompositeManager/CompizFusion
If you ran nvidia-settings, then your xorg.conf lost some info. To fix your compiz window decorations (titlebars) with an nVidia graphics card, run
sudo nvidia-xconfig —add-argb-glx-visuals -d 24
then restart X by logging out and back in again and selecting “Restart X Server” from the login menu.
If you want to stop Compiz and start the old window manager (metacity or kwin), just press Alt+F2 and put in the following for Ubuntu
metacity —replace
metacity —display=:0.0 —replace
effective date: 2010-03-09 01:52:45 UTC