How to prevent new windows from stealing focus?
-
Install CompizConfig Settings Manager
- either from Ubuntu Software Center
-
or via terminal:
sudo apt-get install compizconfig-settings-manager
Open CompizConfig Settings Manager and go to General -> General options -> Focus and raise behaviour
Change the 'Focus prevention level' from 'Low' to 'Normal'.