mirror of
https://github.com/polybar/polybar.git
synced 2025-11-06 22:34:39 -05:00
refactor(modules): Handle events using signal_receiver
This commit is contained in:
parent
c01f111e34
commit
7979f5b3d4
26 changed files with 176 additions and 161 deletions
|
|
@ -222,7 +222,8 @@ namespace modules {
|
|||
return false;
|
||||
}
|
||||
|
||||
bool xworkspaces_module::handle_event(string cmd) {
|
||||
bool xworkspaces_module::on(const input_event_t& evt) {
|
||||
string cmd{*evt.data()};
|
||||
if (cmd.find(EVENT_PREFIX) != 0) {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue