]> Dogcows Code - chaz/openbox/commitdiff
add enter/leave
authorDana Jansens <danakj@orodu.net>
Fri, 27 Dec 2002 08:35:15 +0000 (08:35 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 27 Dec 2002 08:35:15 +0000 (08:35 +0000)
scripts/clientmotion.py

index 8ef4729807bc722e8ab01bcf551fcc214766f469..ac33816af10336c057c58b8cbd265b23d639b702 100644 (file)
@@ -72,6 +72,18 @@ def def_motion(action, win, type, modifiers, xroot, yroot, time):
                #        _posqueue[0]->clientarea.width() + _dx,
                #        _posqueue[0]->clientarea.height() + _dy);
 
+def def_enter(action, win, type, modifiers):
+       client = Openbox_findClient(openbox, win)
+       if not client: return
+        OBClient_focus(client)
+
+def def_leave(action, win, type, modifiers):
+       client = Openbox_findClient(openbox, win)
+       if not client: return
+
+
+register(Action_EnterWindow, def_enter)
+#register(Action_LeaveWindow, def_leave)
 
 register(Action_ButtonPress, def_motion_press)
 register(Action_ButtonRelease, def_motion_release)
This page took 0.023514 seconds and 4 git commands to generate.