From 8c4357fccb29b1c4ddf560748b7e0b3e7285050a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 4 Jan 2003 01:18:24 +0000 Subject: keep track of the last input event time --- otk/eventdispatcher.hh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'otk/eventdispatcher.hh') diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index a55b5b82..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; @@ -41,7 +43,7 @@ private: 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); }; -- cgit v1.2.3