mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-31 07:11:09 -04:00
term: make sure the color table is populated *before* the slave process is spawned
This commit is contained in:
parent
21db6a6cdc
commit
42be74214a
1 changed files with 1 additions and 2 deletions
|
|
@ -1409,6 +1409,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
||||||
pixman_region32_init(&term->render.last_overlay_clip);
|
pixman_region32_init(&term->render.last_overlay_clip);
|
||||||
|
|
||||||
term_update_ascii_printer(term);
|
term_update_ascii_printer(term);
|
||||||
|
memcpy(term->colors.table, theme->table, sizeof(term->colors.table));
|
||||||
|
|
||||||
for (size_t i = 0; i < 4; i++) {
|
for (size_t i = 0; i < 4; i++) {
|
||||||
const struct config_font_list *font_list = &conf->fonts[i];
|
const struct config_font_list *font_list = &conf->fonts[i];
|
||||||
|
|
@ -1443,8 +1444,6 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
|
||||||
xassert(tll_length(term->wl->monitors) > 0);
|
xassert(tll_length(term->wl->monitors) > 0);
|
||||||
term->scale = tll_front(term->wl->monitors).scale;
|
term->scale = tll_front(term->wl->monitors).scale;
|
||||||
|
|
||||||
memcpy(term->colors.table, theme->table, sizeof(term->colors.table));
|
|
||||||
|
|
||||||
/* Initialize the Wayland window backend */
|
/* Initialize the Wayland window backend */
|
||||||
if ((term->window = wayl_win_init(term, token)) == NULL)
|
if ((term->window = wayl_win_init(term, token)) == NULL)
|
||||||
goto err;
|
goto err;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue