eis: drop the seat when the client requests it

This commit is contained in:
Peter Hutterer 2023-02-13 10:13:16 +10:00
parent b481eff34c
commit e84ddd1471

View file

@ -82,8 +82,12 @@ eis_seat_get_client(struct eis_seat *seat)
static int
client_msg_release(struct eis_seat *seat)
{
/* FIXME: not tested since there's no public API to remove a seat */
eis_seat_event_destroyed(seat);
/* There is no public API in libei to remove a seat, and there's no
* public API in libeis to know the client has released the seat. it's
* too niche to care about. So here we simply pretend it's bound to 0
* and remove it, that should do the trick.
*/
eis_seat_drop(seat);
return 0;
}