From 3827c1a76e27865a9e2cc9da43c42399ea354e18 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Wed, 25 Dec 2002 02:19:49 +0000 Subject: python with callbacks! --- src/actions.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/actions.cc') diff --git a/src/actions.cc b/src/actions.cc index 04b50791..d2b4ceef 100644 --- a/src/actions.cc +++ b/src/actions.cc @@ -8,6 +8,7 @@ #include "widget.hh" #include "openbox.hh" #include "client.hh" +#include "python.hh" #include "otk/display.hh" #include @@ -76,6 +77,9 @@ void OBActions::buttonPressHandler(const XButtonEvent &e) printf("GUILE: PRESS: win %lx type %d modifiers %u button %u time %lx\n", (long)e.window, (w ? w->type():-1), e.state, e.button, e.time); + python_callback(Action_ButtonPress, e.window, + (OBWidget::WidgetType)(w ? w->type():-1), + e.state, e.button, e.time); if (_button) return; // won't count toward CLICK events -- cgit v1.2.3