fix(window): pick only con title

This commit is contained in:
Alexis
2018-08-19 20:37:33 +02:00
parent 969c1ceedd
commit 8ce33e0c64
9 changed files with 16 additions and 9 deletions

View File

@ -7,7 +7,7 @@ waybar::modules::Cpu::Cpu(Json::Value config)
uint32_t interval = config_["interval"] ? config_["inveral"].asUInt() : 10;
thread_.sig_update.connect(sigc::mem_fun(*this, &Cpu::update));
thread_ = [this, interval] {
thread_.sig_update.emit();
thread_.emit();
thread_.sleep_for(chrono::seconds(interval));
};
}