aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-09-06 15:52:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-09-06 15:52:07 +0000
commitd040284cc78e753a0c44c35d8446622d453d4674 (patch)
tree73b024bd2dc7348a9cb4402167e0324e5d9776cd /render.c
parentconfig: use correct config file path when logging errors and warnings (diff)
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.
Diffstat (limited to 'render.c')
-rw-r--r--render.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/render.c b/render.c
index ea21b808..70b15202 100644
--- a/render.c
+++ b/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);