diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-01-10 03:11:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-01-10 03:11:48 +0000 |
| commit | b67f5e702e3cc12e4217dd31e2c522dde1ee19b0 (patch) | |
| tree | f50e72175b41099cece0ba0311f66e05f341d65c /src/actions.cc | |
| parent | 0d00827947ef02749d44802613ca13df284e544f (diff) | |
new python interface! using the .py shadow wrappers from swig
Diffstat (limited to 'src/actions.cc')
| -rw-r--r-- | src/actions.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/actions.cc b/src/actions.cc index 14fba7db..e758dd0d 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -81,8 +81,8 @@ void OBActions::buttonPressHandler(const XButtonEvent &e) screen = c->screen(); else screen = otk::OBDisplay::findScreen(e.root)->screen(); - ButtonData data(screen, c, e.time, state, e.button, w->mcontext(), - MousePress); + MouseData data(screen, c, e.time, state, e.button, w->mcontext(), + MousePress); Openbox::instance->bindings()->fireButton(&data); if (_button) return; // won't count toward CLICK events @@ -124,8 +124,8 @@ void OBActions::buttonReleaseHandler(const XButtonEvent &e) screen = c->screen(); else screen = otk::OBDisplay::findScreen(e.root)->screen(); - ButtonData data(screen, c, e.time, state, e.button, w->mcontext(), - MouseClick); + MouseData data(screen, c, e.time, state, e.button, w->mcontext(), + MouseClick); Openbox::instance->bindings()->fireButton(&data); @@ -234,9 +234,9 @@ void OBActions::motionHandler(const XMotionEvent &e) screen = c->screen(); else screen = otk::OBDisplay::findScreen(e.root)->screen(); - MotionData data(screen, c, e.time, state, button, w->mcontext(), MouseMotion, - x_root, y_root, _posqueue[0]->pos, _posqueue[0]->clientarea); - Openbox::instance->bindings()->fireButton((ButtonData*)&data); + MouseData data(screen, c, e.time, state, button, w->mcontext(), MouseMotion, + x_root, y_root, _posqueue[0]->pos, _posqueue[0]->clientarea); + Openbox::instance->bindings()->fireButton(&data); } void OBActions::mapRequestHandler(const XMapRequestEvent &e) |
