Commit 3b3d64ab authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

pause slideshow when editing a caption

parent 5aa0652f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
git HEAD

    * Add --no-fehbg option to disable ~/.fehbg creation (patch by Felix Crux)
    * Pause slideshow when editing captions

Wed, 02 Nov 2011 10:56:10 +0100  Daniel Friesel <derf@finalrewind.org>

+7 −1
Original line number Diff line number Diff line
@@ -640,8 +640,14 @@ void feh_event_handle_keypress(XEvent * ev)
		slideshow_change_image(winwid, SLIDE_RAND, 1);
	}
	else if (feh_is_kp(&keys.toggle_caption, keysym, state)) {
		if (opt.caption_path)
		if (opt.caption_path) {
			/*
			 * editing captions in slideshow mode does not make any sense
			 * at all; this is just in case someone accidentally does it...
			 */
			opt.paused = 1;
			winwid->caption_entry = 1;
		}
		winwidget_render_image(winwid, 0, 0);
	}
	else if (feh_is_kp(&keys.reload_image, keysym, state)) {