summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b268b99)
raw | patch | inline | side by side (parent: b268b99)
author | Kalle Wallin <kaw@linux.se> | |
Sat, 3 Jul 2004 13:02:42 +0000 (13:02 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Sat, 3 Jul 2004 13:02:42 +0000 (13:02 +0000) |
src/screen_utils.c | patch | blob | history | |
src/wreadln.c | patch | blob | history |
diff --git a/src/screen_utils.c b/src/screen_utils.c
index c9abc7b1f78a563cbd188006bb17e48d88b2bde8..7e2ba146c632077de285a626ef87cf3edbaa53ee 100644 (file)
--- a/src/screen_utils.c
+++ b/src/screen_utils.c
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);
diff --git a/src/wreadln.c b/src/wreadln.c
index dd69b417aa3092f1c68d84222da16f1f7b22eea3..3ebba7f2a340ffc809ac3d62b89f3511d0eea554 100644 (file)
--- a/src/wreadln.c
+++ b/src/wreadln.c
#include <ncurses.h>
#include <glib.h>
+#include "config.h"
#include "wreadln.h"
#define KEY_CTRL_A 1
switch (key)
{
- case ERR:
- /* ingnore errors */
+#ifdef HAVE_GETMOUSE
+ case KEY_MOUSE: /* ignore mouse events */
+#endif
+ case ERR: /* ingnore errors */
break;
case KEY_RESIZE: