mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-04 01:40:21 -05:00
config: add tweak.damage-whole-window
When enabled, foot will ‘damage’ the entire window, instead of just the modified/updated rows. This will force the compositor to redraw/blend the whole window. This can be used to workaround an issue with fractional scaling in Gnome, where random thin lines may appear.
This commit is contained in:
parent
4179e480e8
commit
d040284cc7
4 changed files with 27 additions and 2 deletions
5
render.c
5
render.c
|
|
@ -1819,6 +1819,11 @@ grid_render(struct terminal *term, bool redraw_margins)
|
|||
}
|
||||
}
|
||||
|
||||
if (term->conf->tweak.damage_whole_window) {
|
||||
wl_surface_damage_buffer(
|
||||
term->window->surface, 0, 0, INT32_MAX, INT32_MAX);
|
||||
}
|
||||
|
||||
wl_surface_attach(term->window->surface, buf->wl_buf, 0, 0);
|
||||
quirk_kde_damage_before_attach(term->window->surface);
|
||||
wl_surface_commit(term->window->surface);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue