mirror of
https://gitlab.freedesktop.org/libinput/libei.git
synced 2026-04-04 20:20:41 +02:00
libei: change the behavior of the REMOVED message
If a client calls ei_device_remove(), it should consider that as the last interaction with this device (short of unref). There is no need for the server to confirm this, no further events must reach the client for this device. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
451875e287
commit
76e5b30451
1 changed files with 5 additions and 3 deletions
|
|
@ -416,9 +416,11 @@ void
|
|||
ei_device_add(struct ei_device *device);
|
||||
|
||||
/**
|
||||
* Notify the server that the device is no longer required. The server will
|
||||
* reply with a @ref EI_EVENT_DEVICE_REMOVED event once the device has been
|
||||
* removed.
|
||||
* Notify the server that the device should be removed.
|
||||
*
|
||||
* The server will **not** send an @ref EI_EVENT_DEVICE_REMOVED event for
|
||||
* this device, it should be considered removed by the client once this
|
||||
* function completes.
|
||||
*
|
||||
* This does not release any resources associated with this device, use
|
||||
* ei_device_unref() for any references held by the client.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue