summaryrefslogtreecommitdiff
path: root/otk/eventhandler.cc
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-11-17 09:41:58 +0000
committerDana Jansens <danakj@orodu.net>2002-11-17 09:41:58 +0000
commit1d897f432e54400cb2a0e1499712782b336fd728 (patch)
tree2ff371ac0e95fbb1ea237e430bf561f8120564c6 /otk/eventhandler.cc
parent638d4e6f1902c92e73b04246f349318236378437 (diff)
add the config header and emacs comment to all the .cc's
Diffstat (limited to 'otk/eventhandler.cc')
-rw-r--r--otk/eventhandler.cc22
1 files changed, 20 insertions, 2 deletions
diff --git a/otk/eventhandler.cc b/otk/eventhandler.cc
index 9d37bcff..6603b3e1 100644
--- a/otk/eventhandler.cc
+++ b/otk/eventhandler.cc
@@ -1,5 +1,11 @@
+// -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*-
+
+#ifdef HAVE_CONFIG_H
+# include "../config.h"
+#endif
+
+#include "display.hh"
#include "eventhandler.hh"
-#include <iostream>
namespace otk {
@@ -78,7 +84,19 @@ void OtkEventHandler::handle(const XEvent &e)
return selectionHandler(e.xselection);
case SelectionRequest:
return selectionRequestHandler(e.xselectionrequest);
- };
+ default:
+#ifdef SHAPE
+ if (e.type == otk::OBDisplay::shapeEventBase())
+ return shapeHandler((*(XShapeEvent*)&e));
+#endif // SHAPE
+ ;
+ }
+}
+
+
+void OtkEventHandler::clientMessageHandler(const XClientMessageEvent &)
+{
+
}
}