diff options
Diffstat (limited to 'src/wreadln.c')
-rw-r--r-- | src/wreadln.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wreadln.c b/src/wreadln.c index dd69b417a..3ebba7f2a 100644 --- a/src/wreadln.c +++ b/src/wreadln.c @@ -23,6 +23,7 @@ #include <ncurses.h> #include <glib.h> +#include "config.h" #include "wreadln.h" #define KEY_CTRL_A 1 @@ -162,8 +163,10 @@ wreadln(WINDOW *w, switch (key) { - case ERR: - /* ingnore errors */ +#ifdef HAVE_GETMOUSE + case KEY_MOUSE: /* ignore mouse events */ +#endif + case ERR: /* ingnore errors */ break; case KEY_RESIZE: |