terminal: call user-defined callback when destroying terminal

main uses this to get the exit code of the terminal.
This commit is contained in:
Daniel Eklöf 2019-11-01 20:34:32 +01:00
parent 70b236d66d
commit 1e41a25f00
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 38 additions and 13 deletions

View file

@ -150,7 +150,6 @@ struct wayland {
tll(struct terminal *) terms;
struct terminal *focused;
struct terminal *moused;
int last_exit_value; /* TODO: exit value from client(s)? */
};
struct wayland *wayl_init(struct fdm *fdm);