aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-22 17:38:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-22 17:38:38 +0000
commit05bb0ae59050f7dc8da791b9f91fa89ca3699717 (patch)
tree1567f0389b2278a9815084788c3a4a9f0ab51d5f
parentfcft: adjust to fcft-2.0 API changes (diff)
term: guess subpixel mode after initializing wayland window
At this point, we're not mapped, but we should have all the outputs initialized. Which means we can at least guess which subpixel mode to use. If that turns out to be wrong, something we'll detect when we're mapped, we'll just have to re-render.
-rw-r--r--terminal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 4b14fc6f..dc5100ca 100644
--- a/terminal.c
+++ b/terminal.c
@@ -842,6 +842,8 @@ term_init(const struct config *conf, struct fdm *fdm, struct wayland *wayl,
if (!term_font_dpi_changed(term))
goto err;
+ term->font_subpixel = get_font_subpixel(term);
+
term_set_window_title(term, conf->title);
/* Let the Wayland backend know we exist */