]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.hh
can tell where events are coming from!
[chaz/openbox] / otk / eventdispatcher.hh
index 28741d95bff9d942d46689501a371385824e0c92..9f7fb8656f5febebb7c8e3758d63010af88cb44f 100644 (file)
@@ -24,9 +24,18 @@ 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!
This page took 0.019497 seconds and 4 git commands to generate.