X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=6a66afd1e632c23ef85eb7fcd48bbbe1246ff763;hb=f3865bb12c2b3506e181f15f09b8429a59a618f8;hp=f0e23c8f9ce4d68ee2789429bda842f9c94ce725;hpb=150c28620e1f14b7249038068bccca9563526377;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index f0e23c8f..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; @@ -38,9 +40,10 @@ private: OtkEventHandler *_master; Window _focus; XEvent _focus_e; + 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); };