Merge branch 'sway-sub-surface-damage-workaround'

Closes #1046
This commit is contained in:
Daniel Eklöf 2022-04-26 17:44:16 +02:00
commit 29f07c791e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 19 additions and 2 deletions

View file

@ -40,6 +40,15 @@
## Unreleased
### Added
* Workaround for Sway bug [#6960][sway-6960]: scrollback search and
the OSC-555 (“flash”) escape sequence leaves dimmed (search )and
yellow (flash) artifacts ([#1046][1046]).
[sway-6960]: https://github.com/swaywm/sway/issues/6960
[1046]: https://codeberg.org/dnkl/foot/issues/1046
### Changed
### Deprecated
### Removed

View file

@ -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;

View file

@ -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;
}