summaryrefslogtreecommitdiff
path: root/src/thumbnail.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-12 16:36:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-12 16:36:20 +0200
commitfb698401b68a797a0a3e9373dd68c45164848a92 (patch)
treefa4543a1e056518861c164591ac318749155ddd6 /src/thumbnail.c
parente6dd09e65e22cc13692e09b0018960e878b965c7 (diff)
parent1413ec25f44075de07e7e64a0d8d3bd6fa989966 (diff)
Merge branch 'swillner-master'
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r--src/thumbnail.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c
index 45fbabe..79109f4 100644
--- a/src/thumbnail.c
+++ b/src/thumbnail.c
@@ -93,7 +93,6 @@ void init_thumbnail_mode(void)
if (!opt.thumb_title)
opt.thumb_title = "%n";
-
mode = "thumbnail";
if (opt.font)
@@ -177,6 +176,7 @@ void init_thumbnail_mode(void)
td.h + title_area_h, 0, 0, 0, 255);
}
+
if (opt.display) {
winwid = winwidget_create_from_image(td.im_main, WIN_TYPE_THUMBNAIL);
winwidget_rename(winwid, PACKAGE " [thumbnail mode]");
@@ -418,6 +418,7 @@ void init_thumbnail_mode(void)
}
}
+
return;
}
@@ -783,7 +784,6 @@ void feh_thumbnail_show_fullsize(feh_file *thumbfile)
if (!l) {
eprintf("Cannot find %s in filelist, wtf", thumbfile->filename);
}
-
thumbwin = winwidget_get_first_window_of_type(WIN_TYPE_THUMBNAIL_VIEWER);
if (!thumbwin) {
thumbwin = winwidget_create_from_file(
@@ -793,7 +793,13 @@ void feh_thumbnail_show_fullsize(feh_file *thumbfile)
winwidget_show(thumbwin);
} else if (FEH_FILE(thumbwin->file->data) != thumbfile) {
thumbwin->file = l;
- feh_reload_image(thumbwin, 1, 1);
+#ifdef HAVE_INOTIFY
+ winwidget_inotify_remove(thumbwin);
+#endif
+ feh_reload_image(thumbwin, 1, 0);
+#ifdef HAVE_INOTIFY
+ winwidget_inotify_add(thumbwin, thumbfile);
+#endif
}
}