summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorreal <real@jane.(none)>2012-12-25 09:34:21 +0100
committerreal <real@jane.(none)>2012-12-25 09:34:21 +0100
commitf14abbf23f66b835ef353b3f7616ea83cf501b9b (patch)
tree2a9015155e3da570f872e4ae433ede49740e8a04 /src/keyevents.c
parent9fc4db4c054d7a4d69a77df1cc0be4c827f93391 (diff)
parent2acfecee31b8b4102210b79796604dc33bee864a (diff)
Merge branch 'master' of git://github.com/derf/feh
Diffstat (limited to 'src/keyevents.c')
-rw-r--r--src/keyevents.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keyevents.c b/src/keyevents.c
index 18853ed..470d624 100644
--- a/src/keyevents.c
+++ b/src/keyevents.c
@@ -658,7 +658,10 @@ void feh_event_handle_keypress(XEvent * ev)
opt.hide_pointer = !opt.hide_pointer;
}
else if (feh_is_kp(&keys.jump_random, keysym, state)) {
- slideshow_change_image(winwid, SLIDE_RAND, 1);
+ if (winwid->type == WIN_TYPE_THUMBNAIL)
+ feh_thumbnail_select_next(winwid, rand() % (filelist_len - 1));
+ else
+ slideshow_change_image(winwid, SLIDE_RAND, 1);
}
else if (feh_is_kp(&keys.toggle_caption, keysym, state)) {
if (opt.caption_path) {