summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2018-08-18 19:54:30 +0200
committerDaniel Friesel <derf@finalrewind.org>2018-08-18 19:54:30 +0200
commitbc984ff15d35259413577ddc8f5cda408b91e49b (patch)
treeac9994ff66bdabc1f0ca2c52723409fbc3817b1f
parentfd66a0f2a1352de36fa81004325df1040d1cde98 (diff)
parent5c28573eb939ef9e18b993db67c78c35f748151f (diff)
Merge branch 'ulteq-automatic-slideshow-fix'
-rw-r--r--src/slideshow.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index b27a7e8..e87d1b9 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -222,6 +222,9 @@ void slideshow_change_image(winwidget winwid, int change, int render)
*/
int our_filelist_len = filelist_len;
+ if (opt.slideshow_delay > 0.0)
+ feh_add_timer(cb_slide_timer, winwid, opt.slideshow_delay, "SLIDE_CHANGE");
+
/* Without this, clicking a one-image slideshow reloads it. Not very *
intelligent behaviour :-) */
if (filelist_len < 2 && opt.cycle_once == 0)
@@ -359,8 +362,6 @@ void slideshow_change_image(winwidget winwid, int change, int render)
if (filelist_len == 0)
eprintf("No more slides in show");
- if (opt.slideshow_delay > 0.0)
- feh_add_timer(cb_slide_timer, winwid, opt.slideshow_delay, "SLIDE_CHANGE");
return;
}