From 2c908c308df721762fef7c5dca0fcc465f474fd4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 27 Dec 2002 08:35:15 +0000 Subject: [PATCH] add enter/leave --- scripts/clientmotion.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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) -- 2.45.2