App Focus Issue – How to Fix Focus Not Moving to Opened App

12.04

Let's say I have Gthumb open, and then launch Nautilus from the Unity launcher (in 12.04). Why does it sometimes not focus the mouse on Nautilus, which I just launched? Instead, the focus remains on Gthumb while Nautilus opens in front of Gthumb (and not being focused on).

Is this correct behaviour?

Best Answer

You can configure it with CompizConfig-Settings-Manager.

1) Install it: sudo apt-get install compizconfig-settings-manager,

2) Open ccsm (Alt + F2 and type ccsm and hit Enter)

3) Go to "General Options" > "Focus & Raise Behaviour" and set "Focus Prevention Level" to "Off".

4) Enjoy ;-)

enter image description here


If you are feeling lazy, just paste this at terminal and you're done:

gconftool-2  --type=Integer --set /apps/compiz-1/general/screen0/options/focus_prevention_level 0  
Related Question