mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2025-12-29 10:10:17 +01:00
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> |
||
|---|---|---|
| .. | ||
| buildtest.c | ||
| buildtest.cc | ||
| eierpecken.c | ||
| eierpecken.h | ||
| test-ei.c | ||
| test-eis.c | ||
| unit-tests.c | ||