Class PrependEventFilter¶
Defined in File prepend_event_filter.h
Class Documentation¶
-
class PrependEventFilter¶
Prepends an event filter to the Mir server event pipeline.
Filters are processed in order. This filter is prepended before 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
AppendEventFilter - append an event filter
Public Functions
-
explicit PrependEventFilter(std::function<bool(MirEvent const *event)> const &filter)¶
Construct 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 PrependEventFilter(std::function<bool(MirEvent const *event)> const &filter)¶