diff options
Diffstat (limited to '')
-rw-r--r-- | src/list_window.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/list_window.h b/src/list_window.h index ca93971dd..78593948a 100644 --- a/src/list_window.h +++ b/src/list_window.h @@ -1,6 +1,7 @@ #ifndef LIST_WINDOW_H #define LIST_WINDOW_H +#include "../config.h" #include "command.h" #include <ncurses.h> @@ -56,6 +57,16 @@ int list_window_cmd(struct list_window *lw, unsigned rows, command_t cmd); int list_window_scroll_cmd(struct list_window *lw, unsigned rows, command_t cmd); +#ifdef HAVE_GETMOUSE +/** + * The mouse was clicked. Check if the list should be scrolled + * Returns non-zero if the mouse event has been handled. + */ +int +list_window_mouse(struct list_window *lw, unsigned rows, + unsigned long bstate, int y); +#endif + void list_window_center(struct list_window *lw, unsigned rows, unsigned n); |