diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/FbTk/EventManager.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc index 3f28464..1f2aef1 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.5 2003/03/03 21:51:13 rathnor Exp $ | 22 | // $Id: EventManager.cc,v 1.6 2003/05/17 10:40:12 fluxgen Exp $ |
23 | 23 | ||
24 | #include "EventManager.hh" | 24 | #include "EventManager.hh" |
25 | #include "FbWindow.hh" | 25 | #include "FbWindow.hh" |
@@ -91,7 +91,8 @@ void EventManager::remove(const FbWindow &win) { | |||
91 | } | 91 | } |
92 | 92 | ||
93 | void EventManager::registerEventHandler(EventHandler &ev, Window win) { | 93 | void EventManager::registerEventHandler(EventHandler &ev, Window win) { |
94 | m_eventhandlers[win] = &ev; | 94 | if (win != None) |
95 | m_eventhandlers[win] = &ev; | ||
95 | } | 96 | } |
96 | 97 | ||
97 | void EventManager::unregisterEventHandler(Window win) { | 98 | void EventManager::unregisterEventHandler(Window win) { |