don't put windows in the focus cycling list if they are set to not show up in the taskbar
This commit is contained in:
parent
31ae81b34a
commit
1d94cd5277
1 changed files with 11 additions and 8 deletions
|
@ -90,8 +90,9 @@ def _focused(data):
|
||||||
desktop = ob.openbox.screen(_cyc_screen).desktop()
|
desktop = ob.openbox.screen(_cyc_screen).desktop()
|
||||||
for w in _clients:
|
for w in _clients:
|
||||||
client = ob.openbox.findClient(w)
|
client = ob.openbox.findClient(w)
|
||||||
if client and (client.desktop() == desktop and \
|
if client and (client.desktop() == desktop or
|
||||||
client.normal() and client.focus()):
|
client.desktop() == 0xffffffff) \
|
||||||
|
and client.normal() and client.focus()):
|
||||||
break
|
break
|
||||||
if _doing_stacked:
|
if _doing_stacked:
|
||||||
_cyc_w = 0
|
_cyc_w = 0
|
||||||
|
@ -196,10 +197,11 @@ def _create_popup_list(data):
|
||||||
for c in _clients:
|
for c in _clients:
|
||||||
client = ob.openbox.findClient(c)
|
client = ob.openbox.findClient(c)
|
||||||
desktop = ob.openbox.screen(data.screen).desktop()
|
desktop = ob.openbox.screen(data.screen).desktop()
|
||||||
if client and ((client.desktop() == desktop or
|
if client and not client.skipTaskbar() and \
|
||||||
client.desktop() == 0xffffffff) and \
|
((client.desktop() == desktop or
|
||||||
client.normal() and (client.canFocus() or
|
client.desktop() == 0xffffffff) and \
|
||||||
client.focusNotify())):
|
client.normal() and (client.canFocus() or
|
||||||
|
client.focusNotify())):
|
||||||
t = client.title()
|
t = client.title()
|
||||||
if len(t) > 50: # limit the length of titles
|
if len(t) > 50: # limit the length of titles
|
||||||
t = t[:24] + "..." + t[-24:]
|
t = t[:24] + "..." + t[-24:]
|
||||||
|
@ -288,8 +290,9 @@ def focus_next(data, num=1, forward=1):
|
||||||
curdesk = screen.desktop()
|
curdesk = screen.desktop()
|
||||||
while 1:
|
while 1:
|
||||||
client = screen.client(t)
|
client = screen.client(t)
|
||||||
if client.normal() and \
|
if not client.skipTaskbar() and client.normal() and \
|
||||||
(client.desktop() == curdesk or client.desktop() == 0xffffffff)\
|
(client.desktop() == curdesk or
|
||||||
|
client.desktop() == 0xffffffff)\
|
||||||
and client.focus():
|
and client.focus():
|
||||||
if cycle_raise:
|
if cycle_raise:
|
||||||
screen.raiseWindow(client)
|
screen.raiseWindow(client)
|
||||||
|
|
Loading…
Reference in a new issue