about summary refs log tree commit diff stats
path: root/src/LYCurses.c
diff options
context:
space:
mode:
authorThomas E. Dickey <dickey@invisible-island.net>2008-07-05 00:40:57 -0400
committerThomas E. Dickey <dickey@invisible-island.net>2008-07-05 00:40:57 -0400
commit6a2f66bad9065f97b8ec18d165fb5139386c0062 (patch)
tree36bff3e9fdb95aefd966b3a5455e5ae3d8ecae08 /src/LYCurses.c
parent6512ca2735085b610dd72f0d795f0ecfc90097ff (diff)
downloadlynx-snapshots-6a2f66bad9065f97b8ec18d165fb5139386c0062.tar.gz
snapshot of project "lynx", label v2-8-7dev_9b
Diffstat (limited to 'src/LYCurses.c')
-rw-r--r--src/LYCurses.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/LYCurses.c b/src/LYCurses.c
index 35ac01e1..f7dd6022 100644
--- a/src/LYCurses.c
+++ b/src/LYCurses.c
@@ -1,4 +1,4 @@
-/* $LynxId: LYCurses.c,v 1.132 2007/11/12 01:05:49 tom Exp $ */
+/* $LynxId: LYCurses.c,v 1.133 2008/07/01 23:55:27 tom Exp $ */
 #include <HTUtils.h>
 #include <HTAlert.h>
 
@@ -1341,8 +1341,16 @@ void lynx_enable_mouse(int state)
 		  | BUTTON2_CLICKED
 		  | BUTTON3_PRESSED | BUTTON3_RELEASED
 		  | BUTTON3_CLICKED
-		  | BUTTON3_DOUBLE_CLICKED | BUTTON3_TRIPLE_CLICKED,
-		  NULL);
+		  | BUTTON3_DOUBLE_CLICKED | BUTTON3_TRIPLE_CLICKED
+#if NCURSES_MOUSE_VERSION >= 2
+		  | BUTTON4_PRESSED | BUTTON4_RELEASED
+		  | BUTTON4_CLICKED
+		  | BUTTON4_DOUBLE_CLICKED | BUTTON4_TRIPLE_CLICKED
+		  | BUTTON5_PRESSED | BUTTON5_RELEASED
+		  | BUTTON5_CLICKED
+		  | BUTTON5_DOUBLE_CLICKED | BUTTON5_TRIPLE_CLICKED
+#endif
+		  ,NULL);
     } else
 	mousemask(0, NULL);
 #endif /* NCURSES */