X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=6a66afd1e632c23ef85eb7fcd48bbbe1246ff763;hb=043822f6b67f0b6cd1cf60eccb1294b13e8bf11a;hp=a55b5b82824666573249b0cbd5302ea47ae10941;hpb=e9ec2ce0ebccf3b139ebf4fccf093e8ee0366c76;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index a55b5b82..6a66afd1 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; @@ -41,7 +43,7 @@ private: XEvent _crossing_e; //! 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(const XEvent &e); };