summaryrefslogtreecommitdiff
path: root/src/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/events.c')
-rw-r--r--src/events.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/events.c b/src/events.c
index 76c3e64..2142408 100644
--- a/src/events.c
+++ b/src/events.c
@@ -378,10 +378,13 @@ static void feh_event_handle_ButtonRelease(XEvent * ev)
y /= winwid->zoom;
thumbfile = feh_thumbnail_get_file_from_coords(x, y);
if (thumbfile) {
- if (opt.actions[0])
+ if (opt.actions[0]) {
feh_action_run(thumbfile, opt.actions[0]);
- else
+ if (!opt.hold_actions[0])
+ feh_thumbnail_mark_removed(thumbfile, 0);
+ } else {
feh_thumbnail_show_fullsize(thumbfile);
+ }
}
}
} else {