all repos — openbox @ 2c908c308df721762fef7c5dca0fcc465f474fd4

openbox fork - make it a bit more like ryudo

add enter/leave
Dana Jansens danakj@orodu.net
commit

2c908c308df721762fef7c5dca0fcc465f474fd4

parent

3a4f91b53700093f6f577c309a746ede44652e4f

1 files changed, 12 insertions(+), 0 deletions(-)

jump to
M scripts/clientmotion.pyscripts/clientmotion.py

@@ -72,6 +72,18 @@ # c->resize(OBClient::TopLeft,

# _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)