From df92291f7ae1d035d1fb931161ec1b577656e0de Mon Sep 17 00:00:00 2001 From: Avuton Olrich Date: Sat, 29 Oct 2011 21:30:12 -0700 Subject: [PATCH] screen.c: Add pdcurses mouse support --- src/screen.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/screen.c b/src/screen.c index 2d8ab6a..64c704b 100644 --- a/src/screen.c +++ b/src/screen.c @@ -471,8 +471,12 @@ screen_get_mouse_event(struct mpdclient *c, unsigned long *bstate, int *row) { MEVENT event; - /* retrieve the mouse event from ncurses */ + /* retrieve the mouse event from curses */ +#ifdef PDCURSES + nc_getmouse(&event); +#else getmouse(&event); +#endif /* calculate the selected row in the list window */ *row = event.y - screen.title_bar.window.rows; /* copy button state bits */ -- 2.30.2