mirror of
https://github.com/polybar/polybar.git
synced 2026-02-12 09:55:44 +00:00
refactor(modules): Handle events using signal_receiver
This commit is contained in:
@ -163,7 +163,9 @@ namespace modules {
|
||||
/**
|
||||
* Process scroll events by changing backlight value
|
||||
*/
|
||||
bool xbacklight_module::handle_event(string cmd) {
|
||||
bool xbacklight_module::on(const input_event_t& evt) {
|
||||
string cmd{*evt.data()};
|
||||
|
||||
int value_mod = 0;
|
||||
|
||||
if (cmd == EVENT_SCROLLUP) {
|
||||
|
||||
Reference in New Issue
Block a user