MirAL 3.0 - current status
Just an update following the initial pass at cleaning up for MirAL 3.0:
$ grep "\.h$" -R cmake-build-debug/examples/miral-kiosk/ cmake-build-debug/examples/miral-shell/ cmake-build-debug/examples/example-server-lib/ | grep -v /usr/ | grep /include/client/ | sed -n "s~.*\.\./\(.*\.h\)$~\1~p" | sort | uniq | xargs ls 2> /dev/null
include/client/mir_toolkit/event.h
include/client/mir_toolkit/events/event.h
include/client/mir_toolkit/events/input_configuration_event.h
include/client/mir_toolkit/events/input_device_state_event.h
include/client/mir_toolkit/events/input/input_event.h
include/client/mir_toolkit/events/input/keyboard_event.h
include/client/mir_toolkit/events/input/pointer_event.h
include/client/mir_toolkit/events/input/touch_event.h
include/client/mir_toolkit/events/keymap_event.h
include/client/mir_toolkit/events/orientation_event.h
include/client/mir_toolkit/events/prompt_session_event.h
include/client/mir_toolkit/events/resize_event.h
include/client/mir_toolkit/events/surface_event.h
include/client/mir_toolkit/events/surface_output_event.h
include/client/mir_toolkit/events/window_event.h
include/client/mir_toolkit/events/window_output_event.h
That’s 16 “events” files from libmirclient-dev still exposed by libmiral-dev. And that’s essentially just:
miral/append_event_filter.h:#include <mir_toolkit/event.h>
miral/window_management_policy.h:#include <mir_toolkit/event.h>
Replacing (or hiding through a layer of indirection) the use of mirclient APIs for handling input events in the MirAL interface ought to enable us to remove these.