X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=otk%2Feventdispatcher.hh;h=b56445a4bbda18d3da599ebcabf09f505254d606;hb=73f7a0bd69607663050f02acf121f40a739d9619;hp=5e7a1fe484fff6400aa84a7005879c64d567cb07;hpb=e53fbcf092c40b22ccc4c5f23795e12c9862c338;p=chaz%2Fopenbox diff --git a/otk/eventdispatcher.hh b/otk/eventdispatcher.hh index 5e7a1fe4..b56445a4 100644 --- a/otk/eventdispatcher.hh +++ b/otk/eventdispatcher.hh @@ -24,10 +24,19 @@ 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; } + 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! }; }