aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2018-02-18 13:14:00 +0100
committerBert Münnich <ber.t@posteo.de>2018-02-18 14:12:41 +0100
commit41248571373f28a7cbeab6add6b2b21f68ef9bb5 (patch)
treea8ea23a23cf657a83c5f04d840136b6f4ea161be
parent48e0b70ad3dd550bf29810ec9b4f6ebdab3d7605 (diff)
Skip imlib cache when reloading due to inotify event
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index 04e155a..53df538 100644
--- a/main.c
+++ b/main.c
@@ -717,6 +717,7 @@ void run(void)
if (arl_handle(&arl)) {
/* when too fast, imlib2 can't load the image */
nanosleep(&ten_ms, NULL);
+ img_close(&img, true);
load_image(fileidx);
redraw();
}