libei/test
Peter Hutterer c317de742b libei: immediately remove devices added for a removed seat
Once the SEAT_REMOVED event has been processed, adding new devices is
pointless. But we do promise a DEVICE_REMOVED event for any device added with
ei_device_add(), so let's immediately queue an event and mark the device as
dead.

Since the SEAT_REMOVED event may still be pending in the queue (i.e. not yet
read by the client), we need to prepend the event to the queue. Note that
client that immediately add a device when a device is removed will cause
an infinite loop.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2020-10-29 14:10:47 +10:00
..
buildtest.c Include stddef.h for size_t 2020-08-24 13:01:37 +10:00
buildtest.cc Add C++ header guards 2020-09-29 17:30:49 +10:00
eierpecken.c test: when dropping the ei context, also drop our seat ref 2020-10-28 15:41:29 +10:00
eierpecken.h test: add a test to simulate the xdotool/xwayland behavior 2020-10-27 11:35:11 +10:00
test-ei.c libei: immediately remove devices added for a removed seat 2020-10-29 14:10:47 +10:00
test-eis.c Fix double device removal 2020-10-27 11:35:06 +10:00
unit-tests.c Factor out munit test handling into a set of helpers 2020-08-20 14:44:38 +10:00