key-binding: add binds for changing alpha

This commit is contained in:
Baltazár Radics 2022-08-16 12:49:44 +02:00
parent d7b48d3924
commit 1ed7206222
9 changed files with 54 additions and 2 deletions

View file

@ -2323,6 +2323,15 @@ term_font_size_reset(struct terminal *term)
return load_fonts_from_conf(term);
}
void
term_alpha_set(struct terminal *term, uint16_t alpha)
{
term->colors.alpha = alpha;
term_damage_margins(term);
wayl_win_alpha_changed(term->window);
term_font_subpixel_changed(term);
}
bool
term_fractional_scaling(const struct terminal *term)
{