From a961c8b322cd961dee845840c3fbebaff75402b8 Mon Sep 17 00:00:00 2001 From: ANogin Date: Sun, 8 Dec 2013 12:21:45 -0800 Subject: Pass windidget to feh_action_run, making it possible to use format specifiers like %o and %z in slideshow actions (I would like to use this to zoom in, pan, and then use an action to crop the window to zoomed in view). --- src/events.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/events.c') diff --git a/src/events.c b/src/events.c index 4a894e8..b20fd4f 100644 --- a/src/events.c +++ b/src/events.c @@ -388,7 +388,7 @@ static void feh_event_handle_ButtonRelease(XEvent * ev) thumbfile = feh_thumbnail_get_file_from_coords(x, y); if (thumbfile) { if (opt.actions[0]) { - feh_action_run(thumbfile, opt.actions[0]); + feh_action_run(thumbfile, opt.actions[0], winwid); if (!opt.hold_actions[0]) feh_thumbnail_mark_removed(thumbfile, 0); } else { -- cgit v1.2.3