A few days ago, a post on the Ubuntu Forums was announcing a PPA for Ubuntu 12.04 that adds two patches for Unity: 'Dodge windows' and minimize/unminimize on click for the Unity launcher, but initially, the patches had a few bugs (including a bug that prevented minimize from working with multiple windows) which have been fixed recently.

Using the PPA, you'll get the exact same 'Dodge windows' and 'Dodge active window' behaviour in Ubuntu 12.04 as it was in Ubuntu 11.10. You can even change the 'Hide Launcher' behaviour in CompizConfig Settings Manager to 'Dodge windows', 'Dodge active window' (and obviously, the already existing 'Autohide' and 'Never'), like in Ubuntu 11.10.

Get dodge windows and minimize on click for Unity in Ubuntu 12.04

sudo apt-add-repository ppa:ikarosdev/unity-revamped sudo apt-get update sudo apt-get upgrade

Revert the changes

If you'd like to go back to Unity from the official Ubuntu 12.04 repositories, without the dodge windows and minimize on click patches, use the commands below:

sudo apt-get install ppa-purge sudo ppa-purge ppa:ikarosdev/unity-revamped

1. If there is no opened window for that app1.a. Open a new window2. If there is only one opened window for that app2.a. Focus the window, if not focused2.b. Minimize the window2.c. Restore the window2.d. Goto 2.a3. If there is more than one opened window for that app3.a. Focus the latest used window, if not focused3.b. Open spread view3.c. Close spread view and minimize all windows of that app3.d. Restore the latest used window3.e. Goto 3.aHere's a video in which you can see both the dodge windows and minimize on click for Unity in action:Then log out and log back in.