diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/EventManager.cc | 7 | ||||
-rw-r--r-- | src/FbTk/EventManager.hh | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc index 6c697e6..9a11ab2 100644 --- a/src/FbTk/EventManager.cc +++ b/src/FbTk/EventManager.cc | |||
@@ -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.cc,v 1.10 2003/10/14 16:23:16 rathnor Exp $ | 22 | // $Id: EventManager.cc,v 1.11 2004/04/19 22:46:46 fluxgen Exp $ |
23 | 23 | ||
24 | #include "EventManager.hh" | 24 | #include "EventManager.hh" |
25 | #include "FbWindow.hh" | 25 | #include "FbWindow.hh" |
@@ -57,6 +57,11 @@ void EventManager::remove(const FbWindow &win) { | |||
57 | unregisterEventHandler(win.window()); | 57 | unregisterEventHandler(win.window()); |
58 | } | 58 | } |
59 | 59 | ||
60 | EventHandler *EventManager::find(Window win) { | ||
61 | return m_eventhandlers[win]; | ||
62 | } | ||
63 | |||
64 | |||
60 | Window EventManager::getEventWindow(XEvent &ev) { | 65 | Window EventManager::getEventWindow(XEvent &ev) { |
61 | // we only have cases for events that differ from xany | 66 | // we only have cases for events that differ from xany |
62 | switch (ev.type) { | 67 | switch (ev.type) { |
diff --git a/src/FbTk/EventManager.hh b/src/FbTk/EventManager.hh index 4b693ff..049d527 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.7 2003/12/16 17:06:49 fluxgen Exp $ | 22 | // $Id: EventManager.hh,v 1.8 2004/04/19 22:46:46 fluxgen Exp $ |
23 | 23 | ||
24 | #include "EventHandler.hh" | 24 | #include "EventHandler.hh" |
25 | #include <map> | 25 | #include <map> |
@@ -43,6 +43,8 @@ public: | |||
43 | void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } | 43 | void add(EventHandler &ev, Window win) { registerEventHandler(ev, win); } |
44 | void remove(Window win) { unregisterEventHandler(win); } | 44 | void remove(Window win) { unregisterEventHandler(win); } |
45 | 45 | ||
46 | EventHandler *find(Window win); | ||
47 | |||
46 | // Some events have the parent window as the xany.window | 48 | // Some events have the parent window as the xany.window |
47 | // This function always returns the actual window member of the event structure | 49 | // This function always returns the actual window member of the event structure |
48 | static Window getEventWindow(XEvent &ev); | 50 | static Window getEventWindow(XEvent &ev); |