Mercurial > hg
changeset 1563:c1d0f906d379
Add option "use_mouse"
author | franky |
---|---|
date | Thu, 06 Nov 2008 08:15:47 +0100 |
parents | 2e86c1cc4eb1 |
children | 4b6cfaa6898b |
files | mcabber/mcabberrc.example mcabber/src/screen.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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")) {