From 05bb0ae59050f7dc8da791b9f91fa89ca3699717 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 22 Apr 2020 19:38:38 +0200 Subject: [PATCH] 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. --- terminal.c | 2 ++ 1 file changed, 2 insertions(+) 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 */