Log removal of seats and outputs

Signed-off-by: Jim Ramsay <i.am@jimramsay.com>
pull/163/head
Jim Ramsay 2022-10-01 05:25:48 -04:00 committed by Andri Yngvason
parent 7c03f0d6e7
commit c74c0e67d9
1 changed files with 3 additions and 0 deletions

View File

@ -225,6 +225,8 @@ static void registry_remove(void* data, struct wl_registry* registry,
struct output* out = output_find_by_id(&self->outputs, id);
if (out) {
nvnc_log(NVNC_LOG_INFO, "Output %s went away", out->name);
wl_list_remove(&out->link);
output_destroy(out);
@ -238,6 +240,7 @@ static void registry_remove(void* data, struct wl_registry* registry,
struct seat* seat = seat_find_by_id(&self->seats, id);
if (seat) {
nvnc_log(NVNC_LOG_INFO, "Seat %s went away", seat->name);
wl_list_remove(&seat->link);
seat_destroy(seat);