X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=6a66afd1e632c23ef85eb7fcd48bbbe1246ff763;hb=85b0dc80cff679d964820159de018a6e89997184;hp=a9b5af7b2997056a3831decf5b230fb822f189b7;hpb=5869cc29ef15181427e65079d9a52c5d21190206;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index a9b5af7b..6a66afd1 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -31,14 +31,21 @@ 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); }; }