mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-01 07:15:32 -04:00
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
This commit is contained in:
parent
1e87dbc4dc
commit
398d96fdb2
1 changed files with 5 additions and 1 deletions
|
|
@ -355,8 +355,12 @@ fdm_flash(struct fdm *fdm, int fd, int events, void *data)
|
||||||
(unsigned long long)expiration_count);
|
(unsigned long long)expiration_count);
|
||||||
|
|
||||||
term->flash.active = false;
|
term->flash.active = false;
|
||||||
term_damage_view(term);
|
|
||||||
render_refresh(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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue