mirror of
https://github.com/polybar/polybar.git
synced 2026-04-27 18:03:29 +00:00
refactor(modules): Handle events using signal_receiver
This commit is contained in:
17
include/modules/meta/input_handler.hpp
Normal file
17
include/modules/meta/input_handler.hpp
Normal file
@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#include "common.hpp"
|
||||
#include "events/signal.hpp"
|
||||
#include "events/signal_receiver.hpp"
|
||||
|
||||
POLYBAR_NS
|
||||
|
||||
namespace modules {
|
||||
using input_event_t = signals::eventqueue::process_input;
|
||||
class input_handler : public signal_receiver<0, input_event_t> {
|
||||
public:
|
||||
virtual ~input_handler() {}
|
||||
};
|
||||
}
|
||||
|
||||
POLYBAR_NS_END
|
||||
Reference in New Issue
Block a user