You are not logged in.

#1 2008-08-10 16:31:35

sunn
Member
From: Norway
Registered: 2007-10-24
Posts: 41

Openbox: Stop applications from switching desktops when focused?

Well, the topic kinda says it all.  Say I've got Firefox running on desktop 1, and I click on a link somebody pasted in irssi running in my terminal on desktop 4, Firefox will move to desktop 4. I want it to stay on desktop 1 and not bother me.

I've been googling and searching the forums, the wiki and the openbox wiki, but I can't seem to find anything about this specific issue. Maybe I just suck at searching.

I'm using openbox + GNOME - if that matters.

Offline

#2 2008-08-10 17:23:17

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Openbox: Stop applications from switching desktops when focused?

    <application name="opera">
      <desktop>1</desktop>
      <focus>yes</focus>
      <decor>no</decor>
    </application>

Do you have such a snippet in your rc.xml?


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#3 2008-08-10 18:05:37

sunn
Member
From: Norway
Registered: 2007-10-24
Posts: 41

Re: Openbox: Stop applications from switching desktops when focused?

B wrote:

Do you have such a snippet in your rc.xml?

No. I haven't edited anything within the <applications> tag.

Offline

#4 2008-08-10 19:08:48

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Openbox: Stop applications from switching desktops when focused?

This has been annoying the hell out of me as well...and I do have the applications rules configured.  It started happening with Firefox 3 and I haven't been able to get it fixed yet.

Firefox also ignores the fact that it's supposed to open on desktop #2 always.

I'll see if I can track down similar cases today and if not, then I'll open a bug report.

Last edited by thayer (2008-08-10 19:09:46)


thayer williams ~ cinderwick.ca

Offline

#5 2008-08-10 19:19:41

tth
Member
Registered: 2006-05-21
Posts: 12

Re: Openbox: Stop applications from switching desktops when focused?

Maybe this explains a little:

"The change which I suspect will cause us the most trouble is that _NET_ACTIVE_WINDOW now shows the window on the current desktop, so pagers/panels should send a desktop change message first. Probably some of them don't and people will send bug reports. Send them to the pager/panel author instead please smile. "

http://icculus.org/openbox/index.php/Openbox:News

I think this is the cause for the problem. I fixed it by setting browser.tabs.loadDivertedInBackground to true from about:config.

I'm pretty sure this change in Openbox is wrong (They think standards are more important than reality), but I have not investigated the problem more so I can be wrong too.  It just seems so wrong because Openbox has been working almost perfectly before.

Offline

#6 2008-08-11 22:35:10

thisllub
Member
From: Northern NSW Australia
Registered: 2007-12-28
Posts: 231

Re: Openbox: Stop applications from switching desktops when focused?

It doesn't happen for me.
I use no panels or pagers.

Offline

#7 2008-08-12 09:28:58

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox: Stop applications from switching desktops when focused?

It happens with old panels and pagers that expect the old non-standard behavior. Unfortunately there are a dozens of them...


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#8 2008-08-12 11:56:50

jordi
Member
Registered: 2006-12-16
Posts: 103
Website

Re: Openbox: Stop applications from switching desktops when focused?

If it happens just with Firefox, you can set browser.tabs.loadDivertedInBackground to True in about:config

That is at least what fixed the problem for me

Offline

#9 2008-08-12 14:39:43

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox: Stop applications from switching desktops when focused?

The pager should be patched to switch the desktop before giving focus to the window.


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

#10 2008-08-12 18:26:16

dunc
Member
From: Glasgow, UK
Registered: 2007-06-18
Posts: 559

Re: Openbox: Stop applications from switching desktops when focused?

moljac024 wrote:

The pager should be patched to switch the desktop before giving focus to the window.

It doesn't fix the OP's problem, but for the record there's a patch for NetWMPager here (which I haven't actually tried yet, although it's nearly four months old now and nobody seems to have complained smile ).


0 Ok, 0:1

Offline

#11 2008-08-13 14:00:14

PierreAd
Member
Registered: 2007-05-07
Posts: 19

Re: Openbox: Stop applications from switching desktops when focused?

Very interesting, it's one of the reasons I decided to come back to Gnome... Maybe will I change my mind once mort smile

Offline

#12 2008-08-13 23:18:35

moljac024
Member
From: Serbia
Registered: 2008-01-29
Posts: 2,676

Re: Openbox: Stop applications from switching desktops when focused?

dunc wrote:
moljac024 wrote:

The pager should be patched to switch the desktop before giving focus to the window.

It doesn't fix the OP's problem, but for the record there's a patch for NetWMPager here (which I haven't actually tried yet, although it's nearly four months old now and nobody seems to have complained smile ).

I'm surprised that no one has bothered to do this upstream yet. Takes about 2 seconds to copy/paste a line. Why it wasn't there in the first place baffles me.

Last edited by moljac024 (2008-08-13 23:18:51)


The day Microsoft makes a product that doesn't suck, is the day they make a vacuum cleaner.
--------------------------------------------------------------------------------------------------------------
But if they tell you that I've lost my mind, maybe it's not gone just a little hard to find...

Offline

Board footer

Powered by FluxBB