check if the client wants focus before adding to list
This commit is contained in:
parent
ef0e907efd
commit
a692d5c4e1
1 changed files with 2 additions and 1 deletions
|
@ -196,7 +196,8 @@ def _create_popup_list(data):
|
||||||
desktop = ob.openbox.screen(data.screen).desktop()
|
desktop = ob.openbox.screen(data.screen).desktop()
|
||||||
if client and ((client.desktop() == desktop or
|
if client and ((client.desktop() == desktop or
|
||||||
client.desktop() == 0xffffffff) and \
|
client.desktop() == 0xffffffff) and \
|
||||||
client.normal()):
|
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:]
|
||||||
|
|
Loading…
Reference in a new issue