From f1a34dc2f6d88f64dd9efd79ab804f71049b21c2 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Sat, 17 May 2003 10:40:12 +0000 Subject: minor fix for register empty windows --- src/FbTk/EventManager.cc | 5 +++-- 1 file 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 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: EventManager.cc,v 1.5 2003/03/03 21:51:13 rathnor Exp $ +// $Id: EventManager.cc,v 1.6 2003/05/17 10:40:12 fluxgen Exp $ #include "EventManager.hh" #include "FbWindow.hh" @@ -91,7 +91,8 @@ void EventManager::remove(const FbWindow &win) { } void EventManager::registerEventHandler(EventHandler &ev, Window win) { - m_eventhandlers[win] = &ev; + if (win != None) + m_eventhandlers[win] = &ev; } void EventManager::unregisterEventHandler(Window win) { -- cgit v0.11.2