diff options
author | fluxgen <fluxgen> | 2003-08-23 15:44:06 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2003-08-23 15:44:06 (GMT) |
commit | efc1ec4b206f3e24c1fd9ca29096f23735f2e7ae (patch) | |
tree | 063d0ecdf263d60e8a083f285bf84696b3978a48 /src/FbTk/EventManager.hh | |
parent | bc8e67136f9df2d0475f0e2f01e03976aabfa259 (diff) | |
download | fluxbox-efc1ec4b206f3e24c1fd9ca29096f23735f2e7ae.zip fluxbox-efc1ec4b206f3e24c1fd9ca29096f23735f2e7ae.tar.bz2 |
fixed dispatch to parent
Diffstat (limited to 'src/FbTk/EventManager.hh')
-rw-r--r-- | src/FbTk/EventManager.hh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh index 7d67331..7d1562e 100644 --- a/src/FbTk/EventManager.hh +++ b/src/FbTk/EventManager.hh | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: EventManager.hh,v 1.4 2002/12/03 17:05:45 fluxgen Exp $ | 22 | // $Id: EventManager.hh,v 1.5 2003/08/23 15:44:06 fluxgen Exp $ |
23 | 23 | ||
24 | #include "EventHandler.hh" | 24 | #include "EventHandler.hh" |
25 | #include <map> | 25 | #include <map> |
@@ -36,6 +36,8 @@ public: | |||
36 | static EventManager *instance(); | 36 | static EventManager *instance(); |
37 | 37 | ||
38 | void handleEvent(XEvent &ev); | 38 | void handleEvent(XEvent &ev); |
39 | // adds a parent to listen to the childrens events | ||
40 | void addParent(EventHandler &ev, const FbWindow &parent); | ||
39 | void add(EventHandler &ev, const FbWindow &win); | 41 | void add(EventHandler &ev, const FbWindow &win); |
40 | void remove(const FbWindow &win); | 42 | void remove(const FbWindow &win); |
41 | void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } | 43 | void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } |
@@ -45,8 +47,9 @@ public: | |||
45 | private: | 47 | private: |
46 | EventManager() { } | 48 | EventManager() { } |
47 | ~EventManager(); | 49 | ~EventManager(); |
48 | 50 | void dispatch(Window win, XEvent &event, bool parent = false); | |
49 | std::map<Window, EventHandler *> m_eventhandlers; | 51 | std::map<Window, EventHandler *> m_eventhandlers; |
52 | std::map<Window, EventHandler *> m_parent; | ||
50 | }; | 53 | }; |
51 | 54 | ||
52 | }; //end namespace FbTk | 55 | }; //end namespace FbTk |