Commit c0649c4b authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

thumbnail mode: if --action is set, run it instead of opening images

parent 2f09bf03
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -6,6 +6,8 @@ git HEAD
      display on startup
    * Fix off-by-one pixel error when warping the pointer in the
      bottom/right window border
    * thumbnail mode: If --action is set, run specified command instead of
      opening image on click.

Tue, 11 Jun 2013 08:27:24 +0200  Daniel Friesel <derf+feh@finalrewind.org>

+2 −1
Original line number Diff line number Diff line
@@ -136,7 +136,8 @@ For animated images, only the first frame is shown.
Specify a shell command as an action to perform on the image.  In slideshow or
multiwindow mode, the action will be run when the action_0 key is pressed, in
list mode, it will be run for each file.  In loadable/unloadable mode, it will
be run for each loadable/unloadable file, respectively.
be run for each loadable/unloadable file, respectively.  In thumbnail mode,
clicking on an image will cause the action to run instead of opening the image.
.
.Pp
.
+6 −2
Original line number Diff line number Diff line
@@ -378,9 +378,13 @@ 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)
				if (thumbfile) {
					if (opt.actions[0])
						feh_action_run(thumbfile, opt.actions[0]);
					else
						feh_thumbnail_show_fullsize(thumbfile);
				}
			}
		} else {
			opt.mode = MODE_NORMAL;
			winwid->mode = MODE_NORMAL;