mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 13:50:06 +00:00
fix(signals): Use pointer to value
Only pass pointers to emitted signal value since the signal receivers will be called on the same thread as the signal emitter. Refs #302
This commit is contained in:
@ -222,7 +222,7 @@ bool controller::enqueue(string&& input_data) {
|
||||
} else if (chrono::system_clock::now() - m_swallow_input < m_lastinput) {
|
||||
m_log.trace("controller: Swallowing input event (throttled)");
|
||||
} else {
|
||||
m_inputdata = input_data;
|
||||
m_inputdata = forward<string>(input_data);
|
||||
return enqueue(make_input_evt());
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user