From e84ddd14714e83cdecd74ce7713db95c78541b2e Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Mon, 13 Feb 2023 10:13:16 +1000 Subject: [PATCH] eis: drop the seat when the client requests it --- src/libeis-seat.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/libeis-seat.c b/src/libeis-seat.c index c7872ee..af61e92 100644 --- a/src/libeis-seat.c +++ b/src/libeis-seat.c @@ -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; }