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.

Is there a way to focus a certain window under Gnome without bringing the window up?

Background:

I'm creating a script to type an arbitrary sequence characters on a certain window/application. With the help of xdotool, it is possible. But any focus function that it provides -- or any other tools do -- brings the target window forward. That, I want to find a way around.

share|improve this question
add comment

1 Answer

You can change the focusing habit of windows in Ubuntu like this

First got to:

System -> Preferences -> Windows

Then Check "Select windows when the mouse moves over them"

Gnome 2 Windows Preferences Dialogue

Make sure "Raise selected windows after an interval" is deselected.

Hope this helps.

share|improve this answer
    
My system is already set up just like what you suggested. But what I want to do is focus a window without raising it using a command-line tool. –  Gödel Sep 4 '11 at 6:16
    
in that case I would use either wmctrl manpages.ubuntu.com/manpages/dapper/man1/wmctrl.1.html or Sikuli sikuli.org –  Allan Sep 4 '11 at 22:09
add comment

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.