src/overlay.c: clean up timer on exit

This commit is contained in:
Consolatis 2025-02-11 00:39:36 +01:00 committed by Hiroaki Yamamoto
parent 63da13a62b
commit a4d1fcfef2
3 changed files with 15 additions and 0 deletions

View file

@ -260,3 +260,12 @@ overlay_hide(struct seat *seat)
&server->scene->tree);
}
}
void
overlay_finish(struct seat *seat)
{
if (seat->overlay.timer) {
wl_event_source_remove(seat->overlay.timer);
seat->overlay.timer = NULL;
}
}