diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 15:24:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2022-04-26 15:41:38 +0000 |
| commit | 398d96fdb2a18f7652c116639dc17741f5e24404 (patch) | |
| tree | 6005a3cbeae7deed19fccb1659324cae90c86694 | |
| parent | search: work around Sway sub-surface unmap bug (diff) | |
term: flash: work around Sway sub-surface unmap bug
Unmapping a sub-surface in Sway does not damage the underlying
surface.
As a result, the OSC-555 escape (“flash”) will leave yellow margins on
~every second frame.
Out of sway, river, weston and mutter, only Sway needs this
workaround.
This is a workaround for https://github.com/swaywm/sway/issues/6960
Closes #1046
| -rw-r--r-- | terminal.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; } |
