aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Timer.hh
diff options
context:
space:
mode:
authorsimonb <simonb>2006-06-19 05:04:42 (GMT)
committersimonb <simonb>2006-06-19 05:04:42 (GMT)
commitf6140840f85e35354c219e3a505c6d1aeb4d3837 (patch)
tree64f7c645454f75a0a9d02f5befa7cd59d27321b3 /src/FbTk/Timer.hh
parent3bce4aab734683f968d823ffa2d34a78a4babf93 (diff)
downloadfluxbox_pavel-f6140840f85e35354c219e3a505c6d1aeb4d3837.zip
fluxbox_pavel-f6140840f85e35354c219e3a505c6d1aeb4d3837.tar.bz2
fix timer issues (esp clock not updating on multiple screens)
Diffstat (limited to 'src/FbTk/Timer.hh')
-rw-r--r--src/FbTk/Timer.hh14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/FbTk/Timer.hh b/src/FbTk/Timer.hh
index 773d5b8..189c2af 100644
--- a/src/FbTk/Timer.hh
+++ b/src/FbTk/Timer.hh
@@ -74,12 +74,14 @@ public:
74 /// update all timers 74 /// update all timers
75 static void updateTimers(int file_descriptor); 75 static void updateTimers(int file_descriptor);
76 76
77 inline int isTiming() const { return m_timing; } 77 int isTiming() const { return m_timing; }
78 inline int getInterval() const { return m_interval; } 78 int getInterval() const { return m_interval; }
79 inline int doOnce() const { return m_once; }
80 79
81 inline const timeval &getTimeout() const { return m_timeout; } 80 int doOnce() const { return m_once; }
82 inline const timeval &getStartTime() const { return m_start; } 81
82 const timeval &getTimeout() const { return m_timeout; }
83 const timeval &getStartTime() const { return m_start; }
84 void makeEndTime(timeval &tm) const;
83 85
84protected: 86protected:
85 /// force a timeout 87 /// force a timeout
@@ -92,7 +94,7 @@ private:
92 static void removeTimer(Timer *timer); 94 static void removeTimer(Timer *timer);
93 95
94 typedef std::list<Timer *> TimerList; 96 typedef std::list<Timer *> TimerList;
95 static TimerList m_timerlist; ///< list of all timers 97 static TimerList m_timerlist; ///< list of all timers, sorted by next trigger time (start + timeout)
96 98
97 RefCount<Command> m_handler; ///< what to do on a timeout 99 RefCount<Command> m_handler; ///< what to do on a timeout
98 100