define NCURSES_MOUSE_VERSION if pdcurses is used
This commit is contained in:
1 parent
487b2fc1c9
commit
20b0bcc85e
2 files changed
+4
-4
No files matched your search
@@ -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
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
||||
#ifdef USE_PDCURSES
|
||||
# define NCURSES_MOUSE_VERSION 2
|
||||
#endif
|
||||
|
||||
#include "curses.h"
|
||||
|
||||
#include <deque>
|
||||
|
||||
Reference in new issue
Block a user