summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-11-24 23:29:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-11-24 23:29:15 +0100
commitc0649c4b2a7c824abc743fa59457221e2bc3ab21 (patch)
tree01ab4a89424d66fdfb95ed9bc147591611ee6818 /src
parent2f09bf037a9e02de6a0df68625f139173495699a (diff)
thumbnail mode: if --action is set, run it instead of opening images
Diffstat (limited to 'src')
-rw-r--r--src/events.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c
index 15fd0fa..92b6e69 100644
--- a/src/events.c
+++ b/src/events.c
@@ -378,8 +378,12 @@ static void feh_event_handle_ButtonRelease(XEvent * ev)
x /= winwid->zoom;
y /= winwid->zoom;
thumbfile = feh_thumbnail_get_file_from_coords(x, y);
- if (thumbfile)
- feh_thumbnail_show_fullsize(thumbfile);
+ if (thumbfile) {
+ if (opt.actions[0])
+ feh_action_run(thumbfile, opt.actions[0]);
+ else
+ feh_thumbnail_show_fullsize(thumbfile);
+ }
}
} else {
opt.mode = MODE_NORMAL;