Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm using gnome shell with new ubuntu for few days now and have experienced really annoying behaviour with new windows. Sometimes when I use another window and press e.g. Alt Ctrl T to open new terminal window, I don't get this window being brought to front. Instead I get notification at the bottom that "New terminal window is ready to use". The same is with Pidgin being integrated with gnome shell (via extension). Every time I get new message, window pops up but doesn't show. I need to either Alt Tab it or click the notification.

Is there any way to have new windows being always brought to front, and remove those annoying "Window is ready" notifications?

UPDATE - gconftool-2 --search-key focus_new_windows (as severin asked):

 /schemas/apps/metacity/general/focus_new_windows = Schema (type: `string' list_type: '*invalid*' car_type: '*invalid*' cdr_type: '*invalid*' locale: `C')
 /apps/metacity/general/focus_new_windows = smart
share|improve this question

5 Answers 5

You can try setting focus_new_windows from smart to strict. You can either use gconf-editor and go to /apps/metacity/general and change the value of focus_new_windows from smart to strict, like here:enter image description here

Or you can use the command line:

gconftool-2 --set /apps/metacity/general/focus_new_windows --type string strict

If that still doesn't help, you can also change auto_raise_delay from 1000 to 0 in aforementioned gconf-editor (see screenshot).

See also here.

share|improve this answer
1  
But the long description given for focus_new_windows key says "This option provides additional control over how newly created windows get focus. It has two possible values; "smart" applies the user's normal focus mode, and "strict" results in windows started from a terminal not being given focus." But we want the opposite . Isnt it ? We want to give focus for newly launched applications. How to do that? –  mac Dec 22 '11 at 9:39
1  
Running that command-line had no effect for me –  Robin Winslow Aug 8 '13 at 17:24
    
Also had no effect for me (I have it set both to strict and the auto_raise_delay to 0). –  jkbkot Jul 18 at 15:19

There is an extension for Gnome3

"steal my focus"

https://extensions.gnome.org/extension/234/steal-my-focus/

it solves the exact problem you're having.

share|improve this answer
    
doesn't work for me. I noticed that I'm having this problem only on my external monitor. On the laptop display the window comes in front. –  jkbkot Jul 18 at 15:38
    
A great extension! –  qed Sep 29 at 0:01

I dont think there is a setting to do this. I have been using gnome shell for a while now. You can install the "advanced settings extension" for gnome 3 which provides you with a few more settings. However, you cannot get the function you are looking for. I will search the net and come back to you.

share|improve this answer
    
Nope, as far as I'm concerned there is no way to do autofocussing a new window nor is there a way to remove the notifications. –  Hannes Nov 20 '11 at 12:59
    
there is an extension for gnome which does that exact thing you're saying isn't possible. Have a look at my answer :) –  Schweinsteiger Aug 17 '12 at 12:42

You can modify this type of stuff with devilspie, which has a nice GUI frontend gdevilspie, which is in the repos.

share|improve this answer
  1. Go to System > Preferences > CompizConfig Settings Manager > General Options (under General) > Focus & Raise Behaviour,
  2. Clear Focus Prevention Windows field.

References: Compiz General Options, Compiz Window Matching.

share|improve this answer

Your Answer

 
discard

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.