From 7f06b5f830a24e46b0a65cf9dc102144b0ea7b6b Mon Sep 17 00:00:00 2001 From: Nicola Pisanti Date: Tue, 2 Jul 2019 09:47:45 +0200 Subject: [PATCH] deactivate mouse by default, #define ORCA_USES_MOUSE 1 for activate --- tui_main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tui_main.c b/tui_main.c index 9795271..23808e4 100644 --- a/tui_main.c +++ b/tui_main.c @@ -22,6 +22,8 @@ static int spin_track_timeout = 0; #endif +#define ORCA_USES_MOUSE 0 + static void usage(void) { // clang-format off fprintf(stderr, @@ -2270,6 +2272,7 @@ int main(int argc, char** argv) { } goto next_getch; } +#if ORCA_USES_MOUSE case KEY_MOUSE: { MEVENT mevent; if (cont_window && getmouse(&mevent) == OK) { @@ -2291,6 +2294,7 @@ int main(int argc, char** argv) { } goto next_getch; } +#endif case CTRL_PLUS('q'): goto quit; }