simpler code
Mathias Gumz akira at fluxbox dot org
1 files changed,
1 insertions(+),
4 deletions(-)
jump to
M
src/fluxbox.cc
→
src/fluxbox.cc
@@ -256,10 +256,7 @@ // Because when the command is executed we shouldn't do reconfig directly
// because it could affect ongoing menu stuff so we need to reconfig in // the next event "round". FbTk::RefCount<FbTk::Command<void> > reconfig_cmd(new FbTk::SimpleCommand<Fluxbox>(*this, &Fluxbox::timed_reconfigure)); - timeval to; - to.tv_sec = 0; - to.tv_usec = 1; - m_reconfig_timer.setTimeout(to); + m_reconfig_timer.setTimeout(0, 1); m_reconfig_timer.setCommand(reconfig_cmd); m_reconfig_timer.fireOnce(true);