You are not logged in.

#1 2016-07-26 13:00:48

Lactury
Member
Registered: 2016-07-26
Posts: 6

[Solved] [Openbox] Disable focus on specific apps when launched?

Hi

So I have made my rc.xml config so that Thunderbird will open on workspace 2.

...
<application class="Thunderbird">                                                                                                                                                                          
  <desktop>2</desktop>
</application>
...

But when I open Thunderbird, Openbox switches to WS 2 before opening it - which is really annoying.
How can I fix this, so that I can do other things while Thunderbird is being opened in the background on WS 2?

Last edited by Lactury (2016-08-02 10:36:24)

Offline

#2 2016-07-26 13:07:11

Awebb
Member
Registered: 2010-05-06
Posts: 6,287

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

You could try the different focus options inside the application option (see the manual), but I can't find it in the examples, so you might be out of luck setting those for one application only. If you're fine with a global focus setting, see the respective settings in the Openbox manual.

Online

#3 2016-07-26 14:33:09

Lactury
Member
Registered: 2016-07-26
Posts: 6

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

The available properties can be seen under <applications> here https://git.icculus.org/?p=mikachu/open … ;hb=master
I have tried to add <focus>no</focus> but still no luck.

Offline

#4 2016-07-28 22:52:32

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Lactury wrote:

I have tried to add <focus>no</focus> but still no luck.

That should be <focusNew>no</focusNew>

Offline

#5 2016-07-30 06:44:59

Lactury
Member
Registered: 2016-07-26
Posts: 6

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Switched <focus> with <focusNew> but the problem is still here.

Offline

#6 2016-07-30 11:09:21

sonoran
Member
From: sonoran desert
Registered: 2009-01-12
Posts: 192

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Here are the relevant parts of my rc.xml:

<focus>
   <focusNew>yes</focusNew>
</focus>

<applications>
   <application name="urxvt">
   <focus>no</focus>
   </application>
</applications>

All new windows get focus except urxvt.

Offline

#7 2016-07-31 20:24:54

Lactury
Member
Registered: 2016-07-26
Posts: 6

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Wow, that's weird. I have exactly the same configurations, yet it's still not working.

Offline

#8 2016-07-31 20:31:38

Awebb
Member
Registered: 2010-05-06
Posts: 6,287

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Maybe it's time to whip out those code tags and post your entire rc. I haven't read one of these in a while.

In the meantime, try to get the openbox STDOUT and STDERR to a log file on start. Maybe there is an error and Openbox refuses to complain hard enough.

Online

#9 2016-07-31 21:57:34

Lactury
Member
Registered: 2016-07-26
Posts: 6

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Thank you, here is my rc.xml
http://pastebin.com/KbLrTeiN

Last edited by Lactury (2016-07-31 21:58:08)

Offline

#10 2016-08-01 06:18:40

Awebb
Member
Registered: 2010-05-06
Posts: 6,287

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

There it is:

  <!--- #################### -->
  <!--- # FOCUS ON WINDOWS # -->
  <!--- #################### -->
#  <applications>
#    <application class="*">
#      <focus>yes</focus>
#    </application>
#  </applications>

You tried to comment out those lines with #.

Online

#11 2016-08-02 10:35:35

Lactury
Member
Registered: 2016-07-26
Posts: 6

Re: [Solved] [Openbox] Disable focus on specific apps when launched?

Wow, thank you so much, it's working perfectly now!

Offline

Board footer

Powered by FluxBB