]> Dogcows Code - chaz/openbox/commitdiff
reverse the logic. makes more sense i think
authorDana Jansens <danakj@orodu.net>
Tue, 3 Dec 2002 23:56:04 +0000 (23:56 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 3 Dec 2002 23:56:04 +0000 (23:56 +0000)
otk/eventdispatcher.cc

index 30996de003250ba9c5ce3745cc1a435a9378c673..4120192498230d4441248b00cf91f7c45ec728b5 100644 (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);
This page took 0.022799 seconds and 4 git commands to generate.