X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Feventdispatcher.hh;h=63e4ff2913ae733579bb399d0b9c9162e7dd9afd;hb=bd748f74022019c4c9ee3e078afcef14cf47d370;hp=f0e23c8f9ce4d68ee2789429bda842f9c94ce725;hpb=150c28620e1f14b7249038068bccca9563526377;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index f0e23c8f..63e4ff29 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -31,18 +31,20 @@ 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; //! 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); + void dispatch(Window win, const XEvent &e); + void dispatchFocus(const XEvent &e); }; }