]> Dogcows Code - chaz/openbox/blobdiff - otk/timerqueuemanager.cc
set the global display var
[chaz/openbox] / otk / timerqueuemanager.cc
index 793351543d8e33a4e2c9775be19c0993ab187cd3..e5f0a7418fdaba834165e48073e020b555bcde55 100644 (file)
@@ -9,19 +9,19 @@
 
 namespace otk {
 
-void OBTimerQueueManager::fire(bool wait)
+void TimerQueueManager::fire(bool wait)
 {
   fd_set rfds;
   timeval now, tm, *timeout = (timeval *) 0;
 
-  const int xfd = ConnectionNumber(otk::OBDisplay::display);
+  const int xfd = ConnectionNumber(**display);
   
   FD_ZERO(&rfds);
   FD_SET(xfd, &rfds); // break on any x events
 
   if (wait) {
     if (! timerList.empty()) {
-      const OBTimer* const timer = timerList.top();
+      const Timer* const timer = timerList.top();
       
       gettimeofday(&now, 0);
       tm = timer->remainingTime(now);
@@ -40,7 +40,7 @@ void OBTimerQueueManager::fire(bool wait)
   // timer->start() and timer->shouldFire() is within the timer's period
   // then the timer will keep firing.  This should be VERY near impossible.
   while (! timerList.empty()) {
-    OBTimer *timer = timerList.top();
+    Timer *timer = timerList.top();
     if (! timer->shouldFire(now))
       break;
 
@@ -53,13 +53,13 @@ void OBTimerQueueManager::fire(bool wait)
 }
 
 
-void OBTimerQueueManager::addTimer(OBTimer *timer)
+void TimerQueueManager::addTimer(Timer *timer)
 {
   assert(timer);
   timerList.push(timer);
 }
 
-void OBTimerQueueManager::removeTimer(OBTimer* timer)
+void TimerQueueManager::removeTimer(Timer* timer)
 {
   assert(timer);
   timerList.release(timer);
This page took 0.026241 seconds and 4 git commands to generate.