Merge main and crew
authorMikael Berthe <mikael@lilotux.net>
Fri, 16 Jan 2009 22:35:21 +0100
changeset 1564 4b6cfaa6898b
parent 1563 248da27faff3 (current diff)
parent 1562 c1d0f906d379 (diff)
child 1565 d8a016f76ff7
child 1567 bff9633e38ee
Merge main and crew
--- a/mcabber/mcabberrc.example	Fri Jan 16 22:26:51 2009 +0100
+++ b/mcabber/mcabberrc.example	Fri Jan 16 22:35:21 2009 +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	Fri Jan 16 22:26:51 2009 +0100
+++ b/mcabber/src/screen.c	Fri Jan 16 22:35:21 2009 +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")) {