summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
authorSven Willner <sven.willner@gmail.com>2017-09-01 14:51:21 +0200
committerSven Willner <sven.willner@gmail.com>2017-09-01 14:51:21 +0200
commit177cbff6af7b9845d592fb0497464d70ee423418 (patch)
treec7ccf8d9706016bb0c8857bc915ba11e7288a1c5 /src/thumbnail.c
parent2a981df18167cf8dd0a1310b03061010c8ef71dd (diff)
fixed inotify for thumbnail mode
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index edf0f4f..b7108c8 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -790,7 +790,13 @@ void feh_thumbnail_show_fullsize(feh_file *thumbfile)
free(thumbwin->file);
thumbwin->file = gib_list_add_front(NULL, thumbfile);
winwidget_rename(thumbwin, s);
+#ifdef HAVE_INOTIFY
+ winwidget_inotify_remove(thumbwin);
+#endif
feh_reload_image(thumbwin, 1, 1);
+#ifdef HAVE_INOTIFY
+ winwidget_inotify_add(thumbwin, thumbfile->filename);
+#endif
}
}