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/bindings.cc | |
| parent | 0d00827947ef02749d44802613ca13df284e544f (diff) | |
new python interface! using the .py shadow wrappers from swig
Diffstat (limited to 'src/bindings.cc')
| -rw-r--r-- | src/bindings.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bindings.cc b/src/bindings.cc index 2994f564..af9e64ab 100644 --- a/src/bindings.cc +++ b/src/bindings.cc @@ -390,6 +390,7 @@ void OBBindings::fireKey(int screen, unsigned int modifiers, unsigned int key, OBClient *c = Openbox::instance->focusedClient(); KeyData data(screen, c, time, modifiers, key); CallbackList::iterator it, end = p->callbacks.end(); + printf("Firing key!\n"); for (it = p->callbacks.begin(); it != end; ++it) python_callback(*it, &data); resetChains(this); @@ -512,7 +513,7 @@ void OBBindings::grabButtons(bool grab, OBClient *client) } } -void OBBindings::fireButton(ButtonData *data) +void OBBindings::fireButton(MouseData *data) { if (data->context == MC_Window) { // these are grabbed in Sync mode to allow the press to be normal to the @@ -527,7 +528,7 @@ void OBBindings::fireButton(ButtonData *data) CallbackList::iterator c_it,c_end = (*it)->callbacks[data->action].end(); for (c_it = (*it)->callbacks[data->action].begin(); c_it != c_end; ++c_it) - python_callback(*c_it, (PyObject*)data); + python_callback(*c_it, data); } } |
