From 20b0bcc85ede4f7cebe4b4a42595c1cba1814d3b Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 20 Sep 2009 18:56:30 +0200 Subject: [PATCH] define NCURSES_MOUSE_VERSION if pdcurses is used --- src/ncmpcpp.cpp | 4 ---- src/window.h | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ncmpcpp.cpp b/src/ncmpcpp.cpp index 14979333..f9367814 100644 --- a/src/ncmpcpp.cpp +++ b/src/ncmpcpp.cpp @@ -378,11 +378,7 @@ int main(int argc, char *argv[]) } else if (Config.mouse_support && input == KEY_MOUSE) { -# ifdef USE_PDCURSES - nc_getmouse(&mouse_event); -# else getmouse(&mouse_event); -# endif // USE_PDCURSES if (mouse_event.bstate & BUTTON1_PRESSED && mouse_event.y == LINES-(Config.statusbar_visibility ? 2 : 1) ) // progressbar diff --git a/src/window.h b/src/window.h index e2a275d2..3a9e5a85 100644 --- a/src/window.h +++ b/src/window.h @@ -25,6 +25,10 @@ #include #endif +#ifdef USE_PDCURSES +# define NCURSES_MOUSE_VERSION 2 +#endif + #include "curses.h" #include