libei/test
Peter Hutterer a4dde7c35f Filter empty frame events
We only need frame events after device events (pointer, touch,
keyboard). In some cases, the library prevents an event from being
written to the wire, e.g. if the coordinates are out of region, but the
client will still call ei_device_frame() for that now-filtered event.

Keep a boolean to remember if we have sent something that requires a
frame event and filter accordingly.

Note that this currently filters the *sender* side only, not the
receiver side. A sender that gets an empty frame event onto the wire
will still get that into the other side.

This also doesn't handle the flushing of frame events before other
events, ideally we should enforce a frame event before e.g. stop
emulating.
2022-04-29 11:38:07 +10:00
..
buildtest.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00
buildtest.cc Add C++ header guards 2020-09-29 17:30:49 +10:00
eierpecken.c test: handle frame events in passive ei contexts by default 2022-04-29 11:37:35 +10:00
eierpecken.h test: handle frame events in passive ei contexts by default 2022-04-29 11:37:35 +10:00
test-ei-device.c Filter empty frame events 2022-04-29 11:38:07 +10:00
test-ei-seat.c Change to allow dynamic binding of capabilities 2022-04-04 05:24:16 +00:00
test-ei.c Rename ei active/passive to sender/receiver 2022-04-04 15:42:27 +10:00
test-eis.c Change to allow dynamic binding of capabilities 2022-04-04 05:24:16 +00:00
test-main.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00
unit-tests.c Add SPDX identifiers to all source files 2022-03-03 00:27:36 +00:00