for c in _clients:
client = ob.openbox.findClient(c)
desktop = ob.openbox.screen(data.screen).desktop()
- if client and (client.desktop() == desktop and \
- client.normal()):
+ if client and ((client.desktop() == desktop or
+ client.desktop() == 0xffffffff) and \
+ client.normal() and (client.canFocus() or
+ client.focusNotify())):
t = client.title()
if len(t) > 50: # limit the length of titles
t = t[:24] + "..." + t[-24:]