summaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/EventManager.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/FbTk/EventManager.cc b/src/FbTk/EventManager.cc
index cd1ee68..3f28464 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.4 2003/02/23 14:30:18 fluxgen Exp $ 22// $Id: EventManager.cc,v 1.5 2003/03/03 21:51:13 rathnor Exp $
23 23
24#include "EventManager.hh" 24#include "EventManager.hh"
25#include "FbWindow.hh" 25#include "FbWindow.hh"
@@ -95,7 +95,8 @@ void EventManager::registerEventHandler(EventHandler &ev, Window win) {
95} 95}
96 96
97void EventManager::unregisterEventHandler(Window win) { 97void EventManager::unregisterEventHandler(Window win) {
98 m_eventhandlers.erase(win); 98 if (win != None)
99 m_eventhandlers.erase(win);
99} 100}
100 101
101}; 102};