Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable click to advance to next image #411

Open
ivan opened this issue Jul 27, 2018 · 1 comment · May be fixed by #413
Open

Option to disable click to advance to next image #411

ivan opened this issue Jul 27, 2018 · 1 comment · May be fixed by #413

Comments

@ivan
Copy link

ivan commented Jul 27, 2018

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;
@ulteq ulteq linked a pull request Aug 14, 2018 that will close this issue
@tupo2
Copy link

tupo2 commented Aug 16, 2024

Same request, when using --start-at, button1 is bind to next_img and we can not disable it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants