From bb2b7a65ed6ce964527e07843ec0ed86f0b45220 Mon Sep 17 00:00:00 2001 From: Kalle Wallin Date: Sat, 3 Jul 2004 13:02:42 +0000 Subject: Ignore mouse events in wreadln, screen_getch git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1778 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/screen_utils.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/screen_utils.c') diff --git a/src/screen_utils.c b/src/screen_utils.c index c9abc7b1f..7e2ba146c 100644 --- a/src/screen_utils.c +++ b/src/screen_utils.c @@ -65,9 +65,17 @@ screen_getch(WINDOW *w, char *prompt) while( (key=wgetch(w)) == ERR ) ; - + +#ifdef HAVE_GETMOUSE + /* ignore mouse events */ + if( key==KEY_MOUSE ) + return screen_getch(w, prompt); +#endif + if( key==KEY_RESIZE ) - screen_resize(); + { + screen_resize(); + } noecho(); curs_set(0); -- cgit v1.2.3