aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2025-07-23 06:27:25 +0000
committerDaniel Eklöf <daniel@ekloef.se>2025-07-23 06:27:25 +0000
commit5a01dbc234e1ef4379afd92ab56229a153ba56f5 (patch)
treea377853445d83fb49b42b7183b07e9bb99c35572 /terminal.c
parentmeson: bump to 1.23.0 (diff)
parentosc: color reset: read default color from currently active theme (diff)
Merge branch 'master' into releases/1.23
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 135f21ce..2e23f749 100644
--- a/terminal.c
+++ b/terminal.c
@@ -1409,6 +1409,7 @@ term_init(const struct config *conf, struct fdm *fdm, struct reaper *reaper,
pixman_region32_init(&term->render.last_overlay_clip);
term_update_ascii_printer(term);
+ memcpy(term->colors.table, theme->table, sizeof(term->colors.table));
for (size_t i = 0; i < 4; 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);
term->scale = tll_front(term->wl->monitors).scale;
- memcpy(term->colors.table, theme->table, sizeof(term->colors.table));
-
/* Initialize the Wayland window backend */
if ((term->window = wayl_win_init(term, token)) == NULL)
goto err;