X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=c62e24b925c19e3d6a19ea48b3c5c54e446cca33;hb=bc88d310fea71823fb2c61d071ff499579bffaba;hp=a55b5b82824666573249b0cbd5302ea47ae10941;hpb=e9ec2ce0ebccf3b139ebf4fccf093e8ee0366c76;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index a55b5b82..c62e24b9 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -31,19 +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); + void dispatch(Window win, const XEvent &e); + void dispatchFocus(const XEvent &e); }; }