-def def_motion(action, win, type, modifiers, xroot, yroot, time):
- client = Openbox_findClient(openbox, win)
- if not client: return
+def def_do_move(xroot, yroot, client):
+ global posqueue
+ dx = xroot - posqueue[0][1]
+ dy = yroot - posqueue[0][2]
+ area = posqueue[0][3] # A Rect
+ OBClient_move(client, Rect_x(area) + dx, Rect_y(area) + dy)