From 829ce05c7c7fe3697d11739d12577c7151d9953d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 3 Dec 2002 23:56:04 +0000 Subject: [PATCH] reverse the logic. makes more sense i think --- otk/eventdispatcher.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otk/eventdispatcher.cc b/otk/eventdispatcher.cc index 30996de0..41201924 100644 --- a/otk/eventdispatcher.cc +++ b/otk/eventdispatcher.cc @@ -44,10 +44,10 @@ void OtkEventDispatcher::dispatchEvents(void) XNextEvent(OBDisplay::display, &e); it = _map.find(e.xany.window); - if (it == _map.end()) - handler = _fallback; - else + if (it != _map.end()) handler = it->second; + else + handler = _fallback; if (handler) handler->handle(e); -- 2.39.2