Skip to content

Option to disable click to advance to next image #411

@ivan

Description

@ivan

Hi, I really like feh. But one thing that bugs me is the click-to-advance-or-pan feature. I would like it to always pan, never advance, but I could not find a way to configure it. I've been patching it to do so. An option to accomplish this would be greatly appreciated.

diff --git a/src/events.c b/src/events.c
index 89eaab8..41984a0 100644
--- a/src/events.c
+++ b/src/events.c
@@ -218,9 +218,9 @@ static void feh_event_handle_ButtonPress(XEvent * ev)
 		D(("blur starting at %d, %d\n", ev->xbutton.x, ev->xbutton.y));
 
 	} else if (feh_is_bb(EVENT_pan, button, state)) {
-		D(("Next button, but could be pan mode\n"));
-		opt.mode = MODE_NEXT;
-		winwid->mode = MODE_NEXT;
+		D(("Next button patched out; going into pan mode\n"));
+		opt.mode = MODE_PAN;
+		winwid->mode = MODE_PAN;
 		D(("click offset is %d,%d\n", ev->xbutton.x, ev->xbutton.y));
 		winwid->click_offset_x = ev->xbutton.x - winwid->im_x;
 		winwid->click_offset_y = ev->xbutton.y - winwid->im_y;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions