From 84e945a851e0fdd1fe5ae7be9904cd1e3d39a0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 29 Apr 2020 20:07:21 +0200 Subject: [PATCH] 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. --- terminal.c | 5 ++--- 1 file 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;