--- a/mcabber/mcabberrc.example Thu Oct 30 19:47:11 2008 +0100
+++ b/mcabber/mcabberrc.example Thu Nov 06 08:15:47 2008 +0100
@@ -468,6 +468,9 @@
#alias names = room names
#alias topic = room topic
+# Set use_mouse to 1 to map mouse buttons like keycodes.
+#set use_mouse = 1
+
# Key bindings
# Ctlr-q (17) bound to /roster unread_next
bind 17 = roster unread_next
--- a/mcabber/src/screen.c Thu Oct 30 19:47:11 2008 +0100
+++ b/mcabber/src/screen.c Thu Nov 06 08:15:47 2008 +0100
@@ -734,7 +734,8 @@
start_color();
use_default_colors();
#ifdef NCURSES_MOUSE_VERSION
- mousemask(ALL_MOUSE_EVENTS, NULL);
+ if (settings_opt_get_int("use_mouse"))
+ mousemask(ALL_MOUSE_EVENTS, NULL);
#endif
if (settings_opt_get("escdelay")) {