summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-12-03 23:56:04 +0000
committerDana Jansens <danakj@orodu.net>2002-12-03 23:56:04 +0000
commit829ce05c7c7fe3697d11739d12577c7151d9953d (patch)
tree7980b55b133cf82966a721851a997a6016afe5a4
parent861c829ee14fb28a1ccf03f92982ca046ae51278 (diff)
reverse the logic. makes more sense i think
-rw-r--r--otk/eventdispatcher.cc6
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);