From 0bdb6580bd5f470ca82e771c70a8f7cd4f5a0240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 26 Jun 2023 17:32:33 +0200 Subject: [PATCH] wayland: update terminal when preferred scaling factor changes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the window’s preferred scaling factor is changed (through the fractional-scaling protocol), update the terminal; resize font, resize sub-surfaces etc. --- wayland.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wayland.c b/wayland.c index fce6a67f..683338c0 100644 --- a/wayland.c +++ b/wayland.c @@ -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 = {