From: Dana Jansens Date: Tue, 3 Dec 2002 23:56:04 +0000 (+0000) Subject: reverse the logic. makes more sense i think X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=829ce05c7c7fe3697d11739d12577c7151d9953d;p=chaz%2Fopenbox reverse the logic. makes more sense i think --- 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);