You are not logged in.

#1 2015-02-08 08:56:44

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] Terminal opens in background

Hello,

I use the following configuration in my Openbox rc.xml to open gnome-terminal with Super+t:

    <keybind key="W-t">
      <action name="execute">
        <execute>gnome-terminal</execute>
      </action>
    </keybind>

However, this always opens gnome-terminal in background, thus not in the foreground of the currently active window. On the other side, it is opened in the foreground when called explicitly, for instance from the run dialog of dmenu.

Does anyone know what determines if a window is opened in the foreground or background?

Thankfully,

Robert

Last edited by orschiro (2015-02-08 21:18:50)

Offline

#2 2015-02-08 10:13:05

mpan
Member
Registered: 2012-08-01
Posts: 1,675
Website

Re: [solved] Terminal opens in background

I don't know openbox. However some other environments have a feature that prevents windows from stealing focus by opening them in the background if the implementation decides it should not give a focus to the newly opened window. Check if you don't have such feature enabled.

Offline

#3 2015-02-08 12:13:13

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,543
Website

Re: [solved] Terminal opens in background

That should behave as you want unless you have another setting overriding the default.  Check the focus section of your rc.xml.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2015-02-08 12:56:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] Terminal opens in background

You could try adding:

<startupnotify>
      <enabled>yes</enabled>
</startupnotify>

http://openbox.org/wiki/Help:Actions#St … tification


Jin, Jîyan, Azadî

Offline

#5 2015-02-08 21:18:28

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Terminal opens in background

@Head_on_a_Stick

This properly activates gnome-terminal in the foreground. Thank you!

Offline

#6 2015-02-08 21:19:46

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: [solved] Terminal opens in background

You're welcome smile


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB