Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 247037 - x11-wm/openbox-3.4.7.2 make _NET_ACTIVE_WINDOW an option
Summary: x11-wm/openbox-3.4.7.2 make _NET_ACTIVE_WINDOW an option
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: David Shakaryan (RETIRED)
URL: https://bugs.launchpad.net/ubuntu/+so...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-16 11:44 UTC by Thomas Kahle (RETIRED)
Modified: 2010-01-15 22:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Goto on activate patch (openbox-3.4.7.2-goto_on_activate.patch,3.74 KB, patch)
2009-12-02 11:16 UTC, Marc Arens
Details | Diff
updated ebuild that uses the patch (openbox-3.4.7.2-r1.ebuild,1.37 KB, text/plain)
2009-12-02 11:17 UTC, Marc Arens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Kahle (RETIRED) gentoo-dev 2008-11-16 11:44:30 UTC
I found this proposal in Ubuntu's launchpad. This change also bothers me a lot:

As of openbox version 3.4.7, _NET_ACTIVE_WINDOW messages do not change the current desktop, but bring the window to the current desktop instead. This is the industry standard policy, whatever that means.

This for instance happens if Openbox is used in KDE 4 instead of Kwin4.

The link on launchpad has a patch that works fine. Could it be applied to Gentoo ?

Reproducible: Always

Steps to Reproduce:
1. Run an openbox-kde-session
2. open a window,
3. switch to another desktop
4. klick on the pager icon to bring the window to the front

Actual Results:  
Window appears on the current desktop

Expected Results:  
Pager should switch to the Desktop where the window was and the open it.
Comment 1 Rafał Mużyło 2008-11-16 23:29:59 UTC
Something that may or may not be related:
I'm using rox and openbox.
In firefox I'm using Session Manager with a large, 2 window session.
After first window opens, there's a long enough delay for me to send
it to the other desktop, before second window opens.

But, for awhile, I thought something got broken between ff2 and 3,
cause the moment second window opened, first window was moved to the desktop,
the second window appeared.

But looking at this bug, I think this may be related.
Not sure if, in that case, I would call it a problem
with openbox or with rox.
Comment 2 David Shakaryan (RETIRED) gentoo-dev 2008-11-17 21:31:21 UTC
16:09 < omp> http://bugs.gentoo.org/show_bug.cgi?id=247037
16:09 < omp> hrm, comments?
16:11 < Mikachu> omp: just wait until 3.4.8
16:11 < omp> alright

Should be coming soon... I'll leave the bug open as a reminder. =]
Comment 3 Ben de Groot (RETIRED) gentoo-dev 2008-12-05 23:30:22 UTC
Fixed with 3.4.8_rc1 now in the tree.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2008-12-06 12:43:26 UTC
Sorry, but this does not change anything here.

Reopening as /etc/xdg/openboxrc.xml has no change relevant to this and 
using the option <obeyNetActiveWindow>no</obeyNetActiveWindow>
does not change anything. 
Comment 5 Marc Arens 2009-12-01 20:50:08 UTC
I just tested the behaviour of openbox-3.4.8_rc1-r1 with the steps similar to those given in the Description.

gnome-light + openbox

1. start firefox on the 1 virtual desktop
2. open a terminal so firefox is now in the back and terminal is in the front
3. change to desktop 2 which holds a term with an irssi session
4. click a link in the irssi session

result: gnome panel shows an entry for firefox that is pulsing to indicate its state

5. clicking on desk 1 of the pager or clicking on the pulsing taskbar entry takes you from desk 2 to desk 1 and firefox is moved from the back to the front so that it isn't covered by the terminal anylonger. 

I'd say this bug is fixed.
Comment 6 Thomas Kahle (RETIRED) gentoo-dev 2009-12-02 09:32:41 UTC
> I'd say this bug is fixed.

I'd say its not :)

I just reproduced it. Lets clarify the issue. 

Try the following: (Sorry for fuzzyness)

1) Open a kde-openbox session 'with a panel' (e.g. standard stable kde 4 with clean config)
2) open a 'konsole'-terminal
3) switch to another desktop
4) click on the word 'konsole' which displays in the middle of the taskbar. (This is not about clicking on the miniature desktops in the pager!)

Now, if <obeyNetActiveWindow>yes</obeyNetActiveWindow> is in the openbox config, the Konsole window should move to the new desktop. If it is set to 'no' openbox should switch to the old desktop and open the console there.

Should be the same in gnome, mutatis mutandis. Can you try to reproduce this? 
Comment 7 Marc Arens 2009-12-02 11:15:54 UTC
> Now, if <obeyNetActiveWindow>yes</obeyNetActiveWindow> is in the openbox
config

The only place you find this config option is the ubuntu launchpad.
In the latest version of openbox this behaviour has changed like i described above but it isn't configurable. I asked in #openbox and it will probably be configurable in the future.

Before i switched to 3.4.8 i used the patch for 3.4.7.2 which can be found in the openbox bugzilla http://bugzilla.icculus.org/show_bug.cgi?id=3659 . Maybe you should follow that bug and see how this problem is handled upstream.
I'll attach my 3.4.7.2-r1.ebuild which uses the patch so you can throw it in your local overlay. It makes the behaviour configurable via <gotoOnActivate>yes</gotoOnActivate> in rc.xml. Hope that helps you until the behaviour is configurable in openbox 3.4.8, too.
Comment 8 Marc Arens 2009-12-02 11:16:36 UTC
Created attachment 211748 [details, diff]
Goto on activate patch
Comment 9 Marc Arens 2009-12-02 11:17:41 UTC
Created attachment 211750 [details]
updated ebuild that uses the patch
Comment 10 Thomas Kahle (RETIRED) gentoo-dev 2009-12-04 12:32:57 UTC
(In reply to comment #7)
> > Now, if <obeyNetActiveWindow>yes</obeyNetActiveWindow> is in the openbox
> config
> 
> The only place you find this config option is the ubuntu launchpad.
> In the latest version of openbox this behaviour has changed like i described
> above but it isn't configurable. I asked in #openbox and it will probably be
> configurable in the future.

True. Originally I mirrored this bug from the corresponding launchpad bug. Then somebody closed it as fixed which made me assume that the launchpad patch was applied, which is not the case.

> Before i switched to 3.4.8 i used the patch for 3.4.7.2 which can be found in
> the openbox bugzilla http://bugzilla.icculus.org/show_bug.cgi?id=3659 . Maybe
> you should follow that bug and see how this problem is handled upstream.
> I'll attach my 3.4.7.2-r1.ebuild which uses the patch so you can throw it in
> your local overlay. It makes the behaviour configurable via
> <gotoOnActivate>yes</gotoOnActivate> in rc.xml. Hope that helps you until the
> behaviour is configurable in openbox 3.4.8, too.

I am actually not using a panel anymore, just plain openbox window navigation and currently there are no problems. In any case, thanks for looking into this, maybe the backported patch could be applied to the ebuild by some gentoo dev...?
Comment 11 Ben de Groot (RETIRED) gentoo-dev 2010-01-15 22:47:09 UTC
This is supposedly fixed upstream. If you still have an issue with the latest version (currently 3.4.10) then feel free to reopen.