X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventhandler.cc;fp=otk%2Feventhandler.cc;h=6603b3e13509387c6cd196cb0a720b3109f353a9;hb=1d897f432e54400cb2a0e1499712782b336fd728;hp=9d37bcff25204e2d911f2788307f4120017f1366;hpb=638d4e6f1902c92e73b04246f349318236378437;p=chaz%2Fopenbox 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 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 &) +{ + } }