mirror of
https://github.com/polybar/polybar.git
synced 2026-02-12 17:55:33 +00:00
refactor(modules): Handle events using signal_receiver
This commit is contained in:
@ -86,7 +86,9 @@ namespace modules {
|
||||
return true;
|
||||
}
|
||||
|
||||
bool date_module::handle_event(string cmd) {
|
||||
bool date_module::on(const input_event_t& evt) {
|
||||
string cmd{*evt.data()};
|
||||
|
||||
if (cmd != EVENT_TOGGLE) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user