summaryrefslogtreecommitdiff
path: root/src/actions.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-25 02:19:49 +0000
committerDana Jansens <danakj@orodu.net>2002-12-25 02:19:49 +0000
commit3827c1a76e27865a9e2cc9da43c42399ea354e18 (patch)
tree8c895cedf52120fb2783c5070fcb00f3bbdfc5af /src/actions.cc
parentf9107b5c5a4cc03bf544854e8d6d1ba83f6cd979 (diff)
python with callbacks!
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