summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland Angerer <dev@rangerer.at>2014-04-10 10:32:07 +0200
committerRoland Angerer <dev@rangerer.at>2014-04-10 10:32:07 +0200
commita0ddc0dcff5d43871f8c0e87dfb5d2c49671ac30 (patch)
tree9bda5546b34861056474f0f809e5d25b6b8afe1d
parent4b8d812d11a4c8d2b134d2987a878c9fce4bc138 (diff)
re-randomize after list is through
-rw-r--r--src/slideshow.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/slideshow.c b/src/slideshow.c
index 69d8db2..06c73ec 100644
--- a/src/slideshow.c
+++ b/src/slideshow.c
@@ -692,7 +692,13 @@ gib_list *feh_list_jump(gib_list * root, gib_list * l, int direction, int num)
if (opt.cycle_once) {
exit(0);
}
- ret = root;
+ if (opt.randomize) {
+ /* Randomize the filename order */
+ filelist = gib_list_randomize(filelist);
+ ret = filelist;
+ } else {
+ ret = root;
+ }
}
} else {
if (ret->prev)