]> Dogcows Code - chaz/openbox/commitdiff
use the timer queue manager
authorDana Jansens <danakj@orodu.net>
Sat, 16 Nov 2002 12:10:04 +0000 (12:10 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 16 Nov 2002 12:10:04 +0000 (12:10 +0000)
otk/application.cc

index efe6ad85f9beaf8fd070d0e05ab17a0a1e82d0dd..490486ecd21e9e88d2ec09a44e5439ea24328285 100644 (file)
@@ -42,17 +42,9 @@ void OtkApplication::loadStyle(void)
 
 void OtkApplication::exec(void)
 {
-  const int xfd = ConnectionNumber(OBDisplay::display);
-  fd_set rfds;
-  timeval *timeout = 0;
-
   while (1) {
     dispatchEvents();
-
-    FD_ZERO(&rfds);
-    FD_SET(xfd, &rfds);
-
-    select(xfd + 1, &rfds, 0, 0, timeout);
+    _timer_manager->fire(); // fire pending events
   }
 }
 
This page took 0.024648 seconds and 4 git commands to generate.