X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=6a66afd1e632c23ef85eb7fcd48bbbe1246ff763;hb=4c768d5d63154e416e1282396dc48492d0585d42;hp=716a81189eb9ca55b55229303310996dc10d71b6;hpb=2ae2b257d39ea62640c2590f794e4275c6db1cd4;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index 716a8118..6a66afd1 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -31,15 +31,19 @@ public: otk::OtkEventHandler *getMasterHandler(void) const { return _master; } otk::OtkEventHandler *findHandler(Window win); + + inline Time lastTime() const { return _lasttime; } private: OtkEventMap _map; OtkEventHandler *_fallback; 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); };