]> Dogcows Code - chaz/openbox/blobdiff - scripts/clientmotion.py
delete the rects
[chaz/openbox] / scripts / clientmotion.py
index 8ef4729807bc722e8ab01bcf551fcc214766f469..4703c050b89cc3d9a032ea62cc9af4c543cc4732 100644 (file)
@@ -26,7 +26,7 @@ def def_motion_release(action, win, type, modifiers, button, xroot, yroot,
        global posqueue
        for i in posqueue:
                if i[0] == button:
-                       #delete_Rect i[3]
+                       delete_Rect(i[3])
                        posqueue.remove(i)
                        break
        
@@ -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.022 seconds and 4 git commands to generate.