From 03f952cf4dcf45d909ce209838a3beb4304358e5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sat, 31 Jul 2021 19:08:51 +0200 Subject: term: consolidate shutdown related state into an anonymous struct --- terminal.h | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index e0441635..6e8aa264 100644 --- a/terminal.h +++ b/terminal.h @@ -593,12 +593,15 @@ struct terminal { bool ime_enabled; #endif - bool is_shutting_down; - bool slave_has_been_reaped; - int slave_terminate_timeout_fd; - int exit_status; - void (*shutdown_cb)(void *data, int exit_code); - void *shutdown_data; + struct { + bool in_progress; + bool client_has_terminated; + int terminate_timeout_fd; + int exit_status; + + void (*cb)(void *data, int exit_code); + void *cb_data; + } shutdown; char *foot_exe; char *cwd; -- cgit v1.3