diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 15:44:16 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 15:44:16 +0000 |
| commit | 29f07c791e7ec4d1d6ba4136edeb0a3ad71d33c9 (patch) | |
| tree | 19e91983d9ea5bb498ba4f153ad74898c61b3c41 /search.c | |
| parent | Merge branch 'search-crashes' (diff) | |
| parent | changelog: workaround for Sway bug #6960 (diff) | |
Merge branch 'sway-sub-surface-damage-workaround'
Closes #1046
Diffstat (limited to 'search.c')
| -rw-r--r-- | search.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |
