Class AppendEventFilter

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. Returning true prevents later filters from seeing the event.

void operator()(mir::Server &server)