This is useful for mock input drivers that control the server in integration tests. Given that input submission happens on a different thread than processing, it's otherwise impossible for the driver to synchronize with the completion of the processing of submitted events.
5eb985e35 mi: Add a callback to notify driver about input event submission
hw/xfree86/common/xf86Helper.c | 14 ++++++++++++++
hw/xfree86/common/xf86Xinput.h | 5 +++++
mi/mi.h | 6 ++++++
mi/mieq.c | 18 ++++++++++++++++++
4 files changed, 43 insertions(+)