Skip to content

tools: fflush the output in debug-events after each set of events

Peter Hutterer requested to merge whot/libinput:wip/debug-events-flush into main

Fixes e.g. the case where debug-events is used to get the initial device list but no more. Since we never flush, the content is stuck in the buffers and gets lost.

Easy way to reproduce: libinput debug-events | cat, then ctrl+c and see nothing show up (before this patch, anyway).

cc @bentiss

Merge request reports