This question already has an answer here:

Why don't programs open in the foreground? How can I change this behavior? Nautilus will open in the background, Remmina (the remote desktop program) also opens in the background. I have to click on the icon in the Launcher for it to come to the foreground. I would think any program that is invoked by any means would come to front, as it opens. It seems if one program invokes another, it will be in the background. If I click on any icons in the Launcher though, it will actually open in the foreground.

share|improve this question

marked as duplicate by wjandrea, Paranoid Panda, Sumeet Deshmukh, David Foerster, Zanna Jun 16 '17 at 5:54

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 21 down vote accepted

First install CCSM

sudo apt-get update
sudo apt-get install compizconfig-settings-manager

Then run ccsm. Under -> General -> General Options -> Focus & Raise Behaviour -> You will find: "Focus Prevention Level" set it to "Off"

share|improve this answer
    
Works for me! Thanks Mateo!! – 00fruX Aug 29 '14 at 19:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.