From: Avuton Olrich Date: Sun, 30 Oct 2011 04:30:12 +0000 (-0700) Subject: screen.c: Add pdcurses mouse support X-Git-Tag: release-0.20~62 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=df92291f7ae1d035d1fb931161ec1b577656e0de;p=ncmpc.git screen.c: Add pdcurses mouse support --- 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 */