# HG changeset patch # User franky # Date 1225955747 -3600 # Node ID c1d0f906d37901259e22b0f71290be4ca4e29ede # Parent 2e86c1cc4eb17c0071ce0b772cec652ebfe1d194 Add option "use_mouse" diff -r 2e86c1cc4eb1 -r c1d0f906d379 mcabber/mcabberrc.example --- 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 diff -r 2e86c1cc4eb1 -r c1d0f906d379 mcabber/src/screen.c --- 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")) {