diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-12 16:34:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-12 16:34:12 +0200 |
commit | f8270763d6eb37e944999aa30fb648e564353a46 (patch) | |
tree | 3f59564728c1ea7933f0a24f662920110da6c18c /src/thumbnail.c | |
parent | e6dd09e65e22cc13692e09b0018960e878b965c7 (diff) | |
parent | a9ffd5d2234433bc3f3829713b0968a1d6c13b94 (diff) |
Merge branch 'master' of https://github.com/swillner/feh into swillner-master
Diffstat (limited to 'src/thumbnail.c')
-rw-r--r-- | src/thumbnail.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/thumbnail.c b/src/thumbnail.c index 45fbabe..5197618 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; +#ifdef HAVE_INOTIFY + winwidget_inotify_remove(thumbwin); +#endif feh_reload_image(thumbwin, 1, 1); +#ifdef HAVE_INOTIFY + winwidget_inotify_add(thumbwin, thumbfile); +#endif } } |