term: term_spawn_new(): new function, spawns a new foot/footclient process

Bind ctrl+shift+return to it
This commit is contained in:
Daniel Eklöf 2019-12-21 15:27:17 +01:00
parent 2a95f2949b
commit 57de9feaa5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
6 changed files with 80 additions and 5 deletions

5
main.c
View file

@ -223,8 +223,9 @@ main(int argc, char *const *argv)
if ((wayl = wayl_init(fdm)) == NULL)
goto out;
if (!as_server && (term = term_init(&conf, fdm, wayl, conf.term, argc, argv,
&term_shutdown_cb, &shutdown_ctx)) == NULL)
if (!as_server && (term = term_init(
&conf, fdm, wayl, conf.term, prog_name, argc, argv,
&term_shutdown_cb, &shutdown_ctx)) == NULL)
goto out;
if (as_server && (server = server_init(&conf, fdm, wayl)) == NULL)