summaryrefslogtreecommitdiff
path: root/src/keyevents.c
diff options
context:
space:
mode:
authorDennis Real <github@tildepipe.org>2013-01-03 18:14:21 +0100
committerDennis Real <github@tildepipe.org>2013-01-03 18:14:21 +0100
commit1f599fa94790712cd7c79e82d1c15fde2562303e (patch)
tree287f45133409f316b6023b3eb4ed9688b304ceaa /src/keyevents.c
parent586c49b3cc178c1b454749ba1bc76b5814f93737 (diff)
parent75ef6f2ad753bea82746e6f6e7b0ffe49ca2f6e5 (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) {