diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-22 17:38:38 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-22 17:38:38 +0000 |
| commit | 05bb0ae59050f7dc8da791b9f91fa89ca3699717 (patch) | |
| tree | 1567f0389b2278a9815084788c3a4a9f0ab51d5f | |
| parent | fcft: 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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 */ |
