diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-12-03 23:56:04 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-12-03 23:56:04 +0000 |
| commit | 829ce05c7c7fe3697d11739d12577c7151d9953d (patch) | |
| tree | 7980b55b133cf82966a721851a997a6016afe5a4 | |
| parent | 861c829ee14fb28a1ccf03f92982ca046ae51278 (diff) | |
reverse the logic. makes more sense i think
| -rw-r--r-- | otk/eventdispatcher.cc | 6 |
1 files 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); |
