I had a really annoying problem after installing Ubuntu 10.04 which I found a solution to today. The problem was whenever I was opening a new window that new opened window was not focused. Quite annoying! The solution is following:
- System → Preferences → CompizConfig Settings Manager
- Select General in the right hand window.
- Select General Options.
- Select the Focus & Raise Behaviour tab.
- Change Focus Prevention Level to Off.