diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-29 18:07:21 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-29 18:07:21 +0000 |
| commit | 84e945a851e0fdd1fe5ae7be9904cd1e3d39a0aa (patch) | |
| tree | 48a20c246db0965d163ed031a7b2ecb182ce63c4 | |
| parent | csd: 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.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |
