diff options
author | NRK <nrk@disroot.org> | 2023-07-04 07:10:07 +0200 |
---|---|---|
committer | NRK <nrk@disroot.org> | 2023-09-21 00:54:41 +0200 |
commit | 80a71315de2bec9924f2e06a825d4400f2b5a4f8 (patch) | |
tree | c615d6618d4de0b11c3bbe38e480f3dc7cf9ab34 /.github | |
parent | 53a43cb38838bd65512b3b8902cc8a3ecfaaca56 (diff) | |
download | nsxiv-80a71315de2bec9924f2e06a825d4400f2b5a4f8.tar.zst |
fix: re-loading stale multi-frame images
4b67816 only partially fixed this issue. because imlib2's cache may not
have sub-second granularity, there still exists a time-frame while the
`mtime` has not yet been updated but we might be trying to reload the
image due to receiving an inotify event in which case imlib2 will end up
giving us the old frame.
imlib2 v1.12.0 adds a function that allows us to decache any frames
associated with a filename. this allows us to invalidate the cache
manually instead of relying on `mtime`.
but if that's not available due to older imlib2, then forcefully reload
the raw frames and decache them. this has the unfortunate cost that if
`mtime` *was* updated properly then we'll end up loading that image
twice.
fixes: https://codeberg.org/nsxiv/nsxiv/issues/456
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions