Skip imlib cache when reloading due to inotify event
This commit is contained in:
parent
48e0b70ad3
commit
4124857137
1
main.c
1
main.c
|
@ -717,6 +717,7 @@ void run(void)
|
||||||
if (arl_handle(&arl)) {
|
if (arl_handle(&arl)) {
|
||||||
/* when too fast, imlib2 can't load the image */
|
/* when too fast, imlib2 can't load the image */
|
||||||
nanosleep(&ten_ms, NULL);
|
nanosleep(&ten_ms, NULL);
|
||||||
|
img_close(&img, true);
|
||||||
load_image(fileidx);
|
load_image(fileidx);
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue