check if the client wants focus before adding to list
Dana Jansens danakj@orodu.net
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
scripts/focus.py
→
scripts/focus.py
@@ -196,7 +196,8 @@ client = ob.openbox.findClient(c)
desktop = ob.openbox.screen(data.screen).desktop() if client and ((client.desktop() == desktop or client.desktop() == 0xffffffff) and \ - client.normal()): + 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:]