summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-12 16:35:56 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-12 16:35:56 +0200
commit1413ec25f44075de07e7e64a0d8d3bd6fa989966 (patch)
treefa4543a1e056518861c164591ac318749155ddd6 /src
parentf8270763d6eb37e944999aa30fb648e564353a46 (diff)
Handle no-longer-valid files in inotify-based auto-reload
Diffstat (limited to 'src')
-rw-r--r--src/thumbnail.c2
-rw-r--r--src/winwidget.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 5197618..79109f4 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -796,7 +796,7 @@ void feh_thumbnail_show_fullsize(feh_file *thumbfile)
#ifdef HAVE_INOTIFY
winwidget_inotify_remove(thumbwin);
#endif
- feh_reload_image(thumbwin, 1, 1);
+ feh_reload_image(thumbwin, 1, 0);
#ifdef HAVE_INOTIFY
winwidget_inotify_add(thumbwin, thumbfile);
#endif
diff --git a/src/winwidget.c b/src/winwidget.c
index 020ee5b..fa6ac72 100644
--- a/src/winwidget.c
+++ b/src/winwidget.c
@@ -734,7 +734,7 @@ void feh_event_handle_inotify(void)
} else if (event->mask & (IN_CLOSE_WRITE | IN_MOVED_TO)) {
if (strcmp(event->name, FEH_FILE(windows[j]->file->data)->name) == 0) {
D(("inotify says file changed\n"));
- feh_reload_image(windows[j], 0, 1);
+ feh_reload_image(windows[j], 0, 0);
}
}
break;