mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -05:00
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:
parent
8ccabb7974
commit
0bdb6580bd
1 changed files with 2 additions and 0 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue