X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=inline;f=scripts%2Ffocus.py;h=5ae40cf273e483aa7cb71295a0d7d8beef15e398;hb=705d70b053b6c99949dabf01405bbb598588b3a8;hp=60ea4189c3990a0410114f4f5a116ed2720a37e1;hpb=ef0e907efd1c3e6372e172cedd9108034744486a;p=chaz%2Fopenbox diff --git a/scripts/focus.py b/scripts/focus.py index 60ea4189..5ae40cf2 100644 --- a/scripts/focus.py +++ b/scripts/focus.py @@ -196,7 +196,8 @@ def _create_popup_list(data): 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:]