You are not logged in.

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

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
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).

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: USA
Registered: 2007-12-17
Posts: 554
Website

Re: PyPanel: Clicking task doesn't restore focus

Very nice, thanks.

Offline

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

tuxfusion
Member
Registered: 2007-12-31
Posts: 98

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

Offline

Board footer

Powered by FluxBB