]> Dogcows Code - chaz/openbox/blobdiff - otk/application.cc
cleaner while loop
[chaz/openbox] / otk / application.cc
index afe06f803a41b5048604ca4f49e112dd8330fe67..c5889e8d1a817f7420a62c9a0fb7d84d00d42b13 100644 (file)
@@ -56,9 +56,8 @@ void Application::run(void)
 
   while (_appwidget_count > 0) {
     dispatchEvents();
-    if (_appwidget_count <= 0)
-      break;
-    Timer::dispatchTimers(); // fire pending events
+    if (_appwidget_count > 0)
+      Timer::dispatchTimers(); // fire pending events
   }
 }
 
This page took 0.025566 seconds and 4 git commands to generate.