aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 15:32:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:23 +0000
commit0bdb6580bd5f470ca82e771c70a8f7cd4f5a0240 (patch)
treecee858a5fa9e885a9c59d46b129ba9954f379992
parentwayland: surface_scale(): implement fractional scaling (diff)
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.
-rw-r--r--wayland.c2
1 files changed, 2 insertions, 0 deletions
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 = {