You are not logged in.

#1 2008-05-06 23:11:06

B-Con
Member
From: Frisco, TX
Registered: 2007-12-17
Posts: 549
Website

PyPanel: Clicking task doesn't restore focus

When I click a task in the PyPanel bar, it doesn't have focus restored to it. It gets brought to the front of all my windows, but without focus.

My .pypanelrc has

#-------------------------------------
def taskButtonEvent(pp, button, task):
#-------------------------------------
    """ Button event handler for the panel's tasks """
    
    if button == 1:
        pp.taskFocus(task)

which seems to indicate that the window should be getting focus, but alas it is not.

Is this normal? Does perhaps the problem lie with Openbox (which I'm running with pypanel).


- "Cryptographically secure linear feedback based shift registers" -- a phrase that'll get any party started.
- My AUR packages.
- I use i3 on my i7.

Offline

#2 2008-05-07 00:15:31

Ramses de Norre
Member
From: Leuven - Belgium
Registered: 2007-03-27
Posts: 1,289

Re: PyPanel: Clicking task doesn't restore focus

I changed it to

for i in range(2):
    pp.taskFocus(task)

for this reason.

Offline

#3 2008-05-07 08:13:11

B-Con
Member
From: Frisco, TX
Registered: 2007-12-17
Posts: 549
Website

Re: PyPanel: Clicking task doesn't restore focus

Very nice, thanks.


- "Cryptographically secure linear feedback based shift registers" -- a phrase that'll get any party started.
- My AUR packages.
- I use i3 on my i7.

Offline

#4 2008-07-04 14:45:03

tuxfusion
Member
From: Germany
Registered: 2007-12-31
Posts: 77
Website

Re: PyPanel: Clicking task doesn't restore focus

Much appreciated, was playing around with the functions provided but is impossible to create that beaviour with only those , this should be default i guess or is it just openbox ? Wherever range(2) comes from its goooood


"There is no system but GNU, and Linux is one of its kernels." -- Confession of Faith

Offline

Board footer

Powered by FluxBB