X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=otk%2Feventdispatcher.hh;h=9f7fb8656f5febebb7c8e3758d63010af88cb44f;hb=77a8e11660edd66279f2d3def6de3768874ba780;hp=5e7a1fe484fff6400aa84a7005879c64d567cb07;hpb=e53fbcf092c40b22ccc4c5f23795e12c9862c338;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index 5e7a1fe4..9f7fb865 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -24,10 +24,21 @@ public: { _fallback = fallback; } OtkEventHandler *getFallbackHandler(void) const { return _fallback; } + //! Sets an event handler that gets all events for all handlers after + //! any specific handlers have received them + inline void setMasterHandler(OtkEventHandler *master) + { _master = master; } + OtkEventHandler *getMasterHandler(void) const { return _master; } + + OtkEventHandler *findHandler(Window win); + private: OtkEventMap _map; OtkEventHandler *_fallback; + OtkEventHandler *_master; + //! The time at which the last XEvent with a time was received + Time _lasttime; // XXX: store this! also provide an accessor! }; }