From 758fd9fd58b25ab285868db7f36afdf9378df733 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 27 Mar 2020 21:14:49 +0100 Subject: client: add --maximized and --fullscreen We now create a copy of the config for each client, and updates it with the values passed from the client. Since we're not actually cloning it (and e.g. strdup() all strings etc) we can't call conf_destroy() to free it, but need to free just the strings we've replaced. --- terminal.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'terminal.h') diff --git a/terminal.h b/terminal.h index 3685c0d7..d7d4d705 100644 --- a/terminal.h +++ b/terminal.h @@ -430,8 +430,7 @@ struct terminal { struct config; struct terminal *term_init( const struct config *conf, struct fdm *fdm, struct wayland *wayl, - const char *term_env, bool login_shell, const char *foot_exe, - const char *cwd, int argc, char *const *argv, + const char *foot_exe, const char *cwd, int argc, char *const *argv, void (*shutdown_cb)(void *data, int exit_code), void *shutdown_data); bool term_shutdown(struct terminal *term); -- cgit v1.3