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:
8d5bd29
)
dont focus desktops and docks via enter events
author
Dana Jansens
<danakj@orodu.net>
Sat, 4 Jan 2003 02:29:40 +0000
(
02:29
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 4 Jan 2003 02:29:40 +0000
(
02:29
+0000)
scripts/builtins.py
patch
|
blob
|
history
diff --git
a/scripts/builtins.py
b/scripts/builtins.py
index 3fdd3ae0e90b7ce74997e678144577c26e55b7df..46e7d28ed5c65180b68d482a2e006b5341f440d6 100644
(file)
--- a/
scripts/builtins.py
+++ b/
scripts/builtins.py
@@
-11,6
+11,13
@@
def focus(data):
"""Focuses the window on which the event occured"""
client = Openbox_findClient(openbox, data.window())
if not client: return
+ type = OBClient_type(client)
+ # these types of windows dont get focus from window enter events
+ if data.action() == EventEnterWindow:
+ print "enter window"
+ if (type == OBClient_Type_Dock or \
+ type == OBClient_Type_Desktop):
+ return
OBClient_focus(client)
def move(data):