aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-04-26 15:44:16 +0000
committerDaniel Eklöf <daniel@ekloef.se>2022-04-26 15:44:16 +0000
commit29f07c791e7ec4d1d6ba4136edeb0a3ad71d33c9 (patch)
tree19e91983d9ea5bb498ba4f153ad74898c61b3c41 /terminal.c
parentMerge branch 'search-crashes' (diff)
parentchangelog: workaround for Sway bug #6960 (diff)
Merge branch 'sway-sub-surface-damage-workaround'
Closes #1046
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 7d230cdf..9199aa31 100644
--- a/terminal.c
+++ b/terminal.c
@@ -355,8 +355,12 @@ fdm_flash(struct fdm *fdm, int fd, int events, void *data)
(unsigned long long)expiration_count);
term->flash.active = false;
- term_damage_view(term);
render_refresh(term);
+
+ /* Work around Sway bug - unmapping a sub-surface does not damage
+ * the underlying surface */
+ term_damage_margins(term);
+ term_damage_view(term);
return true;
}