mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 05:19:54 +00:00
refactor: Wait with tray initialization until ready
This commit is contained in:
@ -183,6 +183,8 @@ bool controller::run(bool writeback) {
|
||||
throw application_error("No modules started");
|
||||
}
|
||||
|
||||
m_sig.emit(signals::eventqueue::start{});
|
||||
|
||||
m_connection.flush();
|
||||
|
||||
m_event_thread = thread(&controller::process_eventqueue, this);
|
||||
@ -531,7 +533,7 @@ bool controller::on(const sig_ev::check_state&) {
|
||||
}
|
||||
}
|
||||
m_log.warn("No running modules...");
|
||||
on(exit_terminate{});
|
||||
on(sig_ev::exit_terminate{});
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user