all repos — fluxbox @ e8c813c38c40b25373e6fa897a05fd57fcc98b97

custom fork of the fluxbox windowmanager

fixed a minor bug that can lead to HIGH cpuload under some circumstances.
actually we must ensure that only timers with a valid handle are added to the
timerslist.
akir akir
commit

e8c813c38c40b25373e6fa897a05fd57fcc98b97

parent

87c7c80847255e6eddca9b9a819fb031915e8570

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M src/FbTk/Timer.ccsrc/FbTk/Timer.cc

@@ -84,7 +84,8 @@

void Timer::start() { gettimeofday(&m_start, 0); - if (! m_timing) { + // only add Timers that actually DO something + if (! m_timing && *m_handler) { m_timing = true; addTimer(this); //add us to the list }