]> Dogcows Code - chaz/openbox/commitdiff
dont focus desktops and docks via enter events
authorDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 02:29:40 +0000 (02:29 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Jan 2003 02:29:40 +0000 (02:29 +0000)
scripts/builtins.py

index 3fdd3ae0e90b7ce74997e678144577c26e55b7df..46e7d28ed5c65180b68d482a2e006b5341f440d6 100644 (file)
@@ -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):
This page took 0.022434 seconds and 4 git commands to generate.