aboutsummaryrefslogtreecommitdiff
path: root/config.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 /config.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 'config.c')
-rw-r--r--config.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.c b/config.c
index 000538f8..f15be1c2 100644
--- a/config.c
+++ b/config.c
@@ -1361,6 +1361,9 @@ parse_section_tweak(
if (strcmp(key, "allow-overflowing-double-width-glyphs") == 0)
conf->tweak.allow_overflowing_double_width_glyphs = str_to_bool(value);
+ else if (strcmp(key, "damage-whole-window") == 0)
+ conf->tweak.damage_whole_window = str_to_bool(value);
+
else if (strcmp(key, "render-timer") == 0) {
if (strcmp(value, "none") == 0) {
conf->tweak.render_timer_osd = false;
@@ -1801,6 +1804,7 @@ config_load(struct config *conf, const char *conf_path, bool errors_are_fatal)
.max_shm_pool_size = 512 * 1024 * 1024,
.render_timer_osd = false,
.render_timer_log = false,
+ .damage_whole_window = false,
},
.notifications = tll_init(),