simpler code

This commit is contained in:
Mathias Gumz 2010-09-09 23:24:27 +02:00
parent ffd5f28072
commit ecdaba2874

View file

@ -256,10 +256,7 @@ Fluxbox::Fluxbox(int argc, char **argv, const char *dpy_name,
// 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);