diff options
author | Mathias Gumz <akira at fluxbox dot org> | 2013-02-14 18:58:14 (GMT) |
---|---|---|
committer | Mathias Gumz <akira at fluxbox dot org> | 2013-02-14 18:58:28 (GMT) |
commit | ec7fe513c8ca241836fab4632fc56faedd0f1863 (patch) | |
tree | 5730015ada46c7f64952fd57edefca50674979fc /src/Window.cc | |
parent | ac27c8cb4235b548ac1d1a5d5472d04a198bddf2 (diff) | |
download | fluxbox-ec7fe513c8ca241836fab4632fc56faedd0f1863.zip fluxbox-ec7fe513c8ca241836fab4632fc56faedd0f1863.tar.bz2 |
Trigger ClockTool every second, independent of the format string
It's hard to hit right moment to update the clock correctly: Either we are a
bit too early and the 'old time' is the same as the 'new time' and the clock
looks 'a bit off' or we are too late and the clock is 'a bit off'. This is
especially the case for format strings which do not show the second and thus
are updated only at the full minute (see bug #1082): if fluxbox does not
update the clock 'now' it would do it one minute later and thus the clock
might show the wrong time for roughly 1 minute.
Instead of coming up with something immensely clever we just trigger the
ClockTool every second. If no update of the shown time is needed fluxbox won't
do anything.
Some minor code reordering as byproduct.
Diffstat (limited to 'src/Window.cc')
0 files changed, 0 insertions, 0 deletions