You are not logged in.

#1 2008-12-15 18:30:08

joqueza
Member
Registered: 2008-08-16
Posts: 58

netwmpager behaviour

How do I unset netwmpager to not switch windows among panels whenever I click a different panel? Ex: I'm at panel 5, but If I just want to get back to panel 1, Then I click the first one and I'm there. But now, in this same case, when I click panel 1, it sends window 1 to panel 5.

Anyone have any suggestion? This strange behavior happens at home, not at work. Same version of both openbox and netwmpager;

Offline

#2 2008-12-15 19:50:23

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netwmpager behaviour

There is no way (except hacking the code, obviously). Many people complain about this problem, and netwmpager is not maintained anymore, so it will not change. The behaviour is consistent (but annoying): if you click in the empty space in a desktop, then you are sent to that desktop; if you click in a window, that window is sent to the current workspace. This would make sense, but is annoying when a window is mximized in a tag and there is only a small empty pixel in the pager where you can click to go there.
It is a pity, because netwmpager would be a really nice app.


Mortuus in anima, curam gero cutis

Offline

#3 2008-12-15 20:37:01

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

Re: netwmpager behaviour

You have to add a single line to netwmpager and re-compile it.
This happens because the new version of openbox handles stuff that way (supposed to be the NetWM standard which a lot of apps didn't implement)

I don't have the netwmpager source with me now, since I'm at work, I could post details when I get home.


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

#4 2008-12-15 21:16:08

FaN_OnLy1
Member
From: Montpellier, France
Registered: 2008-09-22
Posts: 126

Re: netwmpager behaviour

I second this, it can get quite annoying.

Offline

#5 2008-12-16 11:29:01

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

Re: netwmpager behaviour

I'm sorry, I just remember I don't have my laptop with me, it's being serviced :-/
But the problem is, I can't find the netwmpager source anywhere, the site where it used to be (the one that our PKGBUILD and gentoo's ebuild seem to be pulling from) is dead.

Anyone got the source ? big_smile


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

#6 2008-12-16 11:59:20

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netwmpager behaviour

moljac024 wrote:

I'm sorry, I just remember I don't have my laptop with me, it's being serviced :-/
But the problem is, I can't find the netwmpager source anywhere, the site where it used to be (the one that our PKGBUILD and gentoo's ebuild seem to be pulling from) is dead.

Anyone got the source ? big_smile

http://archlinux.lando.imap.cc/netwmpager-1.11.tar.bz2


Mortuus in anima, curam gero cutis

Offline

#7 2008-12-16 13:54:59

joqueza
Member
Registered: 2008-08-16
Posts: 58

Re: netwmpager behaviour

Do you guys know where can I host the patched version? I applied the patch to the source code and made a PKGBUILD.

Thx

Last edited by joqueza (2008-12-16 13:55:58)

Offline

#8 2008-12-16 13:56:43

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netwmpager behaviour

where the patch comes from?


Mortuus in anima, curam gero cutis

Offline

#9 2008-12-16 21:51:32

joqueza
Member
Registered: 2008-08-16
Posts: 58

Re: netwmpager behaviour

patroclo7 wrote:

where the patch comes from?

gentoo guys

Offline

#10 2008-12-16 21:53:04

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netwmpager behaviour

Ok, but I was implicitly asking if you can post it here, since it is a very short patch I guess smile


Mortuus in anima, curam gero cutis

Offline

#11 2008-12-16 22:46:22

joqueza
Member
Registered: 2008-08-16
Posts: 58

Re: netwmpager behaviour

patroclo7 wrote:

Ok, but I was implicitly asking if you can post it here, since it is a very short patch I guess smile

ah ofcourse, since english isnt my first language, I don't get these little things heh:

You have to browse to line 1136 in pager.c and change:

if (button == 1) {
        if (pager->mouse.window_idx == -1) {
            x_set_current_desktop(desk);
        } else if (!pager->mouse.dragging) {
            x_set_active_window(pager->windows[pager->mouse.window_idx].window, SOURCE_INDICATION_PAGER);
        }

for this:

if (button == 1) {
        if (pager->mouse.window_idx == -1) {
            x_set_current_desktop(desk);
        } else if (!pager->mouse.dragging) {
            x_set_current_desktop(desk);
            x_set_active_window(pager->windows[pager->mouse.window_idx].window, SOURCE_INDICATION_PAGER);
        }

That's it. I was thinking about the PKGBUILD just because not everyone has the patience to do that smile

Offline

#12 2008-12-16 22:49:16

joqueza
Member
Registered: 2008-08-16
Posts: 58

Re: netwmpager behaviour

as moljac024 said, its very simple, it's just calling the same function twice

Offline

#13 2008-12-17 07:12:12

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: netwmpager behaviour

Thanks it works. Perhaps we can ask to include this in the "official"PKGBUILD in AUR unsupported. Since upstream is dead, perhaps the annoying behaviour can be fixed at this level.

Last edited by patroclo7 (2008-12-17 07:12:52)


Mortuus in anima, curam gero cutis

Offline

Board footer

Powered by FluxBB