aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-01-04 18:57:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-01-04 18:57:16 +0000
commitf29d506f3bd459f1725a6cd2572b0e17a7b734a6 (patch)
tree90679ed3af4074e9080ba37b67a281e1486f6cb4 /main.c
parentdoc: document how to do block selections (diff)
parentterm: more comments in the 'render' sub-struct (diff)
Merge branch 'render-refresh-optimize'
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.c b/main.c
index ec44b8b3..e418b584 100644
--- a/main.c
+++ b/main.c
@@ -19,6 +19,7 @@
#include "config.h"
#include "fdm.h"
+#include "render.h"
#include "server.h"
#include "shm.h"
#include "terminal.h"
@@ -218,6 +219,7 @@ main(int argc, char *const *argv)
struct fdm *fdm = NULL;
struct wayland *wayl = NULL;
+ struct renderer *renderer = NULL;
struct terminal *term = NULL;
struct server *server = NULL;
struct shutdown_context shutdown_ctx = {.term = &term, .exit_code = EXIT_FAILURE};
@@ -238,6 +240,9 @@ main(int argc, char *const *argv)
if ((wayl = wayl_init(&conf, fdm)) == NULL)
goto out;
+ if ((renderer = render_init(fdm, wayl)) == NULL)
+ goto out;
+
if (!as_server && (term = term_init(
&conf, fdm, wayl, conf.term, "foot", cwd, argc, argv,
&term_shutdown_cb, &shutdown_ctx)) == NULL) {
@@ -276,6 +281,7 @@ out:
term_destroy(term);
shm_fini();
+ render_destroy(renderer);
wayl_destroy(wayl);
fdm_destroy(fdm);