Ubuntu Prevent Focus Stealing

If you find yourself typing away whilst something else loads or another window pops open and all of a sudden your typing has gone into a different window then this solution is for you

Open gconf-editor. Open a terminal and type gconf-editor and hit return.

Now navigate to /apps/compiz/general/screen0/options/focus_prevention_level key and set its value to 4.

That’s it.

You might actually decide that focus stealing is sometimes useful in which case you can always change it back.

Originally found here: http://askubuntu.com/a/55220