Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Why sometimes when I open a picture or Skype (probably there are other programs with the same behavior, but I don't remember now) the Image Viewer / Skype is not focused.

It doesn't happen all the time. I cannot catch the exact condition when this happens, but it really bothers me because often I close the wrong program.

share|improve this question

This is related to your focus stealing preventing settings in Compiz.

Install Compizconfig-settings-manager from the software centre, open it, and then go to general options, and in there, set your focus stealing prevention level to a higher level:

enter image description here

share|improve this answer

(NOTE: this answer might be Xfce-specific, I have not used gnome or unity enough to know)

In the window manager tweaks setting page, the focus tab allows you to change how focus is shared between programs.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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