From 8081cbebf36e48297a589af02db400687c4ef261 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Thu, 5 Oct 2017 13:53:29 +0200 Subject: Improve mouse support None of the mouse mappings uses a keyboard modifier, making it possible to access the most basic features by only using the mouse. Next/previous image with left button depending on cursor position, middle button for dragging, right button for switching to thumnail mode and wheel for zooming. Users can keep the old behaviour by simply not adapting the changes to the buttons array in config.def.h to their config.h file. --- commands.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'commands.c') diff --git a/commands.c b/commands.c index 522413d..6c5fb1a 100644 --- a/commands.c +++ b/commands.c @@ -33,6 +33,7 @@ void remove_file(int, bool); void load_image(int); void open_info(void); +int ptr_third_x(void); void redraw(void); void reset_cursor(void); void animate(void); @@ -281,6 +282,11 @@ bool ci_navigate(arg_t n) } } +bool ci_cursor_navigate(arg_t _) +{ + return ci_navigate(ptr_third_x() - 1); +} + bool ci_alternate(arg_t _) { load_image(alternate); -- cgit v1.2.3-54-g00ecf