reverse the logic. makes more sense i think

This commit is contained in:
Dana Jansens 2002-12-03 23:56:04 +00:00
parent 861c829ee1
commit 829ce05c7c

View file

@ -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);