wayland: update terminal when preferred scaling factor changes

When the window’s preferred scaling factor is changed (through the
fractional-scaling protocol), update the terminal; resize font, resize
sub-surfaces etc.
This commit is contained in:
Daniel Eklöf 2023-06-26 17:32:33 +02:00
parent 8ccabb7974
commit 0bdb6580bd
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -1526,7 +1526,9 @@ static void fractional_scale_preferred_scale(
{
struct wl_window *win = data;
win->scale = (float)scale / 120.;
LOG_DBG("fractional scale: %.3f", win->scale);
update_term_for_output_change(win->term);
}
static const struct wp_fractional_scale_v1_listener fractional_scale_listener = {