Lifesaver! Had exactly the problem – installed Compiz, clicked preferences and ended up with no Unity. Logged in with Unity 2D (option on login screen) and that’s fine. Phew!