]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.hh
can tell where events are coming from!
[chaz/openbox] / otk / eventdispatcher.hh
index 5e7a1fe484fff6400aa84a7005879c64d567cb07..9f7fb8656f5febebb7c8e3758d63010af88cb44f 100644 (file)
@@ -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!
 };
 
 }
This page took 0.019851 seconds and 4 git commands to generate.