summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-29 13:42:31 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-29 13:42:31 +0200
commit98eedcea57ee51c62471af0bfc3d3a551d0dd46a (patch)
tree5bf7c197e35337935f93790ec95095a3658f11ae
parent9bc266a0736ee4b02ec727c0a4b2417c62c874c9 (diff)
also mark images as removed/processed when clicking on them in thumbnail mode and --action is specifed
-rw-r--r--ChangeLog2
-rw-r--r--src/events.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 5aa4196..37c94f1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -6,6 +6,8 @@ git HEAD
(previously second-to-last) image (patch by Lior Shiponi)
* Allow --sort and --randomize to override each other (most recently
specified option wins) instead of always preferring --sort
+ * Thumbnail mode: Mark image as processed when executing an action
+ (--action) by clicking on an image
Sun, 24 May 2015 11:45:18 +0200
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 {