projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef0e907
)
check if the client wants focus before adding to list
author
Dana Jansens
<danakj@orodu.net>
Thu, 30 Jan 2003 00:03:45 +0000
(
00:03
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 30 Jan 2003 00:03:45 +0000
(
00:03
+0000)
scripts/focus.py
patch
|
blob
|
history
diff --git
a/scripts/focus.py
b/scripts/focus.py
index 60ea4189c3990a0410114f4f5a116ed2720a37e1..9a480ed556523bfbedf1c9bc1f0ab2a450c863b6 100644
(file)
--- 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:]