mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-16 06:59:47 -05:00
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:
parent
50dc6989b8
commit
caa6442556
5 changed files with 31 additions and 16 deletions
|
|
@ -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);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue