X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=c62e24b925c19e3d6a19ea48b3c5c54e446cca33;hb=ec6951c2c7bf7d2d0a122e0e26555231109b0f89;hp=a9b5af7b2997056a3831decf5b230fb822f189b7;hpb=5869cc29ef15181427e65079d9a52c5d21190206;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index a9b5af7b..c62e24b9 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -31,6 +31,8 @@ public: otk::OtkEventHandler *getMasterHandler(void) const { return _master; } otk::OtkEventHandler *findHandler(Window win); + + inline Time lastTime() const { return _lasttime; } private: OtkEventMap _map; @@ -38,7 +40,10 @@ private: OtkEventHandler *_master; //! The time at which the last XEvent with a time was received - Time _lasttime; // XXX: store this! also provide an accessor! + Time _lasttime; + + void dispatch(Window win, const XEvent &e); + void dispatchFocus(const XEvent &e); }; }