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. --- main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index bf73c199..0d8dc139 100644 --- a/main.c +++ b/main.c @@ -360,8 +360,7 @@ main(int argc, char *const *argv) goto out; if (!as_server && (term = term_init( - &conf, fdm, wayl, conf.term, conf.login_shell, - "foot", cwd, argc, argv, + &conf, fdm, wayl, "foot", cwd, argc, argv, &term_shutdown_cb, &shutdown_ctx)) == NULL) { free(cwd); goto out; -- cgit v1.3