X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventhandler.cc;h=e4a24df81782e87d38d54bb220d9897f62de61f6;hb=74061b4e2d33d7e2101c4edda26cfc2a1294f32b;hp=6603b3e13509387c6cd196cb0a720b3109f353a9;hpb=1d897f432e54400cb2a0e1499712782b336fd728;p=chaz%2Fopenbox diff --git a/otk/eventhandler.cc b/otk/eventhandler.cc index 6603b3e1..e4a24df8 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 &) { }