From: Dana Jansens Date: Fri, 27 Dec 2002 08:35:15 +0000 (+0000) Subject: add enter/leave X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2c908c308df721762fef7c5dca0fcc465f474fd4;p=chaz%2Fopenbox add enter/leave --- diff --git a/scripts/clientmotion.py b/scripts/clientmotion.py index 8ef47298..ac33816a 100644 --- a/scripts/clientmotion.py +++ b/scripts/clientmotion.py @@ -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)