aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:07:21 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-29 18:07:21 +0000
commit84e945a851e0fdd1fe5ae7be9904cd1e3d39a0aa (patch)
tree48a20c246db0965d163ed031a7b2ecb182ce63c4
parentcsd: buttons: use default color table as default colors (diff)
term: initialize rendering worker threads after instantiating fonts
This ensures the resources (e.g. stack) used by the transient threads used to load the primary fonts can be re-used by the rendering worker threads.
-rw-r--r--terminal.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/terminal.c b/terminal.c
index 6d42ce89..bca1a2a4 100644
--- a/terminal.c
+++ b/terminal.c
@@ -858,9 +858,6 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
}
initialize_color_cube(term);
- if (!initialize_render_workers(term))
- goto err;
-
/* Initialize the Wayland window backend */
if ((term->window = wayl_win_init(term)) == NULL)
goto err;
@@ -897,6 +894,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
goto err;
}
+ if (!initialize_render_workers(term))
+ goto err;
return term;