compositor: Use a virtual destructor when shutting down

Backend can now rely on their destroy function getting called on shutdown,
so reset tty etc there instead of handling SIGTERM twice.
This commit is contained in:
Kristian Høgsberg 2010-12-01 16:52:15 -05:00
parent 50dc6989b8
commit caa6442556
5 changed files with 31 additions and 16 deletions

View file

@ -163,6 +163,7 @@ struct wlsc_compositor {
uint32_t focus;
void (*destroy)(struct wlsc_compositor *ec);
int (*authenticate)(struct wlsc_compositor *c, uint32_t id);
void (*present)(struct wlsc_compositor *c);
};