mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
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.
This commit is contained in:
parent
7194f65ae9
commit
05bb0ae590
1 changed files with 2 additions and 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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue