X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventhandler.cc;h=c867d809c8294aef3b70dfd43f7a2ff8a25b70bd;hb=63a74632ac39d445cb15cda510c8267da9ff6bbb;hp=6603b3e13509387c6cd196cb0a720b3109f353a9;hpb=1d897f432e54400cb2a0e1499712782b336fd728;p=chaz%2Fopenbox diff --git a/otk/eventhandler.cc b/otk/eventhandler.cc index 6603b3e1..c867d809 100644 --- a/otk/eventhandler.cc +++ b/otk/eventhandler.cc @@ -9,17 +9,17 @@ namespace otk { -OtkEventHandler::OtkEventHandler() +EventHandler::EventHandler() { } -OtkEventHandler::~OtkEventHandler() +EventHandler::~EventHandler() { } -void OtkEventHandler::handle(const XEvent &e) +void EventHandler::handle(const XEvent &e) { switch(e.type){ case KeyPress: @@ -30,6 +30,8 @@ void OtkEventHandler::handle(const XEvent &e) return buttonPressHandler(e.xbutton); case ButtonRelease: return buttonReleaseHandler(e.xbutton); + case MotionNotify: + return motionHandler(e.xmotion); case EnterNotify: return enterHandler(e.xcrossing); case LeaveNotify: @@ -86,15 +88,19 @@ void OtkEventHandler::handle(const XEvent &e) return selectionRequestHandler(e.xselectionrequest); default: #ifdef SHAPE - if (e.type == otk::OBDisplay::shapeEventBase()) + if (e.type == display->shapeEventBase()) return shapeHandler((*(XShapeEvent*)&e)); #endif // SHAPE +#ifdef XKB + if (e.type == display->xkbEventBase()) + return xkbHandler((*(XkbEvent*)&e)); +#endif // XKB ; } } -void OtkEventHandler::clientMessageHandler(const XClientMessageEvent &) +void EventHandler::clientMessageHandler(const XClientMessageEvent &) { }