]> Dogcows Code - chaz/openbox/blobdiff - otk/eventdispatcher.cc
unmap works.. once
[chaz/openbox] / otk / eventdispatcher.cc
index 30996de003250ba9c5ce3745cc1a435a9378c673..2a0c4448f59c045c604e75e1261b4c118d66f103 100644 (file)
@@ -42,12 +42,13 @@ void OtkEventDispatcher::dispatchEvents(void)
 
   while (XPending(OBDisplay::display)) {
     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.020046 seconds and 4 git commands to generate.