Class AppendEventFilter¶
Defined in File append_event_filter.h
Class Documentation¶
-
class AppendEventFilter¶
Appends an event filter to the Mir server event pipeline.
Filters are processed in order. This filter is appended after any existing filters, including those provided by miral::WindowManagementPolicy.
An event is passed to this filter only if no earlier filter has already handled it.
See also
AppendKeyboardEventFilter - a specialized event filter which only filters keyboard events
See also
PrependEventFilter - prepend an event filter
Public Functions
-
explicit AppendEventFilter(std::function<bool(MirEvent const *event)> const &filter)¶
Constructs a new event filter wrapper using the provided
filter
function.- Parameters:
filter – A function that returns
true
if it handled the event. Returningtrue
prevents later filters from seeing the event.
-
void operator()(mir::Server &server)¶
-
explicit AppendEventFilter(std::function<bool(MirEvent const *event)> const &filter)¶