From c515ae7956ee16e7595294ed4cb7cba7f88c48ae Mon Sep 17 00:00:00 2001 From: Levi Smith Date: Sat, 4 Sep 2010 04:13:16 -0700 Subject: Option --action-hold-slide. If specified, when in slideshow mode images will not automatically change after running user action. Otherwise, slideshow images will cycle after action as usual. --- src/keyevents.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/keyevents.c') diff --git a/src/keyevents.c b/src/keyevents.c index 8bb85f5..893d543 100644 --- a/src/keyevents.c +++ b/src/keyevents.c @@ -35,9 +35,11 @@ void feh_event_invoke_action(winwidget winwid, char *action) D(("winwid is '%p'\n", winwid)); if (action) { if (opt.slideshow) { - feh_action_run(FEH_FILE(winwid->file->data), action); - winwidget_update_caption(winwid); - /* slideshow_change_image(winwid, SLIDE_NEXT); */ + feh_action_run(FEH_FILE(winwid->file->data), action); + winwidget_update_caption(winwid); + + if (! opt.action_hold_slide) + slideshow_change_image(winwid, SLIDE_NEXT); } else if ((winwid->type == WIN_TYPE_SINGLE) || (winwid->type == WIN_TYPE_THUMBNAIL_VIEWER)) { -- cgit v1.2.3