aboutsummaryrefslogtreecommitdiff
path: root/search.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 /search.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 'search.c')
-rw-r--r--search.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/search.c b/search.c
index 09b59d50..72c589f2 100644
--- a/search.c
+++ b/search.c
@@ -116,6 +116,11 @@ search_cancel_keep_selection(struct terminal *term)
term_xcursor_update(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);
}
void
@@ -795,7 +800,6 @@ execute_binding(struct seat *seat, struct terminal *term,
grid->view = ensure_view_is_allocated(
term, term->search.original_view);
}
- term_damage_view(term);
search_cancel(term);
return true;