Skip to content

Commit

Permalink
fix(controller): don't draw window if writing to stdout (polybar#1322)
Browse files Browse the repository at this point in the history
  • Loading branch information
NBonaparte authored and patrick96 committed Jul 24, 2018
1 parent cd1d2eb commit 709a5c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/controller.cpp
Expand Up @@ -348,7 +348,12 @@ void controller::read_events() {
*/
void controller::process_eventqueue() {
m_log.info("Eventqueue worker (thread-id=%lu)", this_thread::get_id());
m_sig.emit(signals::eventqueue::start{});
if (!m_writeback) {
m_sig.emit(signals::eventqueue::start{});
} else {
// bypass the start eventqueue signal
m_sig.emit(signals::ui::ready{});
}

while (!g_terminate) {
event evt{};
Expand Down

0 comments on commit 709a5c3

Please sign in to comment.