summaryrefslogtreecommitdiff
path: root/src/actions.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.cc')
-rw-r--r--src/actions.cc4
1 files changed, 4 insertions, 0 deletions
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 <stdio.h>
@@ -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