diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2024-06-24 15:55:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2024-06-24 18:09:37 +0000 |
| commit | 795e39de1a187f6a09aad02410f69f19781bd3c1 (patch) | |
| tree | 2157be8c4ccb715a4556438ea61cb8f8ecad5c70 | |
| parent | input: don't reset the XKB compose state in keymap() (diff) | |
shm: discard shm buffers with mis-matching alpha-setting
| -rw-r--r-- | CHANGELOG.md | 2 | ||||
| -rw-r--r-- | shm.c | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f3367c5..06225366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -97,6 +97,8 @@ ([#1734][1734]). * XKB compose state being reset when foot receives a new keymap ([#1744][1744]). +* Regression: alpha changes through OSC-11 sequences not taking effect + until window is resized. [1694]: https://codeberg.org/dnkl/foot/issues/1694 [1717]: https://codeberg.org/dnkl/foot/issues/1717 @@ -564,7 +564,9 @@ shm_get_buffer(struct buffer_chain *chain, int width, int height, bool with_alph tll_foreach(chain->bufs, it) { struct buffer_private *buf = it->item; - if (buf->public.width != width || buf->public.height != height) { + if (buf->public.width != width || buf->public.height != height || + with_alpha != buf->with_alpha) + { LOG_DBG("purging mismatching buffer %p", (void *)buf); if (buffer_unref_no_remove_from_chain(buf)) tll_remove(chain->bufs, it); |
