diff -urN ncmpc-0.11.0.orig/src/conf.c ncmpc-0.11.0/src/conf.c --- ncmpc-0.11.0.orig/src/conf.c 2004-07-09 09:49:44.000000000 +0200 +++ ncmpc-0.11.0/src/conf.c 2004-11-16 20:30:27.466343152 +0100 @@ -45,6 +45,7 @@ /* configuration field names */ #define CONF_ENABLE_COLORS "enable-colors" +#define CONF_ENABLE_MOUSE "enable-mouse" #define CONF_AUTO_CENTER "auto-center" #define CONF_WIDE_CURSOR "wide-cursor" #define CONF_ENABLE_BELL "enable-bell" @@ -420,6 +421,11 @@ { options->enable_colors = str2bool(value); } + /*enable mouse*/ + else if( !strcasecmp(CONF_ENABLE_MOUSE, name) ) + { + options->enable_mouse = str2bool(value); + } /* auto center */ else if( !strcasecmp(CONF_AUTO_CENTER, name) ) { diff -urN ncmpc-0.11.0.orig/src/options.c ncmpc-0.11.0/src/options.c --- ncmpc-0.11.0.orig/src/options.c 2004-07-09 09:49:47.000000000 +0200 +++ ncmpc-0.11.0/src/options.c 2004-11-16 20:26:48.532626136 +0100 @@ -62,6 +62,8 @@ { 'P', "password","PASSWORD", "Connect with password" }, { 'f', "config", "FILE", "Read configuration from file" }, { 'k', "key-file","FILE", "Read configuration from file" }, + { 'm', "mouse", NULL, "Use the mouse" }, + { 'M', "no-mouse", NULL, "Don't use the mouse" }, #ifdef DEBUG { 'D', "debug", NULL, "Enable debug output on stderr" }, #endif @@ -152,6 +154,12 @@ case 'C': /* --no-colors */ options.enable_colors = FALSE; break; + case 'm': /* --mouse */ + options.enable_mouse = TRUE; + break; + case 'M': /* --no-mouse */ + options.enable_mouse = FALSE; + break; case 'e': /* --exit */ options.reconnect = FALSE; break; @@ -315,6 +323,7 @@ options.find_wrap = TRUE; options.wide_cursor = TRUE; options.audible_bell = TRUE; + options.enable_mouse = TRUE; return &options; } diff -urN ncmpc-0.11.0.orig/src/options.h ncmpc-0.11.0/src/options.h --- ncmpc-0.11.0.orig/src/options.h 2004-07-09 09:49:38.000000000 +0200 +++ ncmpc-0.11.0/src/options.h 2004-11-12 13:33:15.000000000 +0100 @@ -20,6 +20,7 @@ gboolean auto_center; gboolean wide_cursor; gboolean enable_colors; + gboolean enable_mouse; gboolean audible_bell; /* not implemented */ gboolean visible_bell; /* not implemented */ gboolean enable_xterm_title; /* not implemented */ diff -urN ncmpc-0.11.0.orig/src/screen.c ncmpc-0.11.0/src/screen.c --- ncmpc-0.11.0.orig/src/screen.c 2004-07-09 09:49:42.000000000 +0200 +++ ncmpc-0.11.0/src/screen.c 2004-11-16 20:31:22.293008232 +0100 @@ -474,10 +474,15 @@ keypad(stdscr, TRUE); /* return from getch() without blocking */ timeout(SCREEN_TIMEOUT); - /* initialize mouse support */ -#ifdef HAVE_GETMOUSE - mousemask(ALL_MOUSE_EVENTS, NULL); -#endif + + if(options.enable_mouse == TRUE) + { + /* initialize mouse support */ + #ifdef HAVE_GETMOUSE + mousemask(ALL_MOUSE_EVENTS, NULL); + #endif + } + if( COLS