aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/screen_utils.c')
-rw-r--r--src/screen_utils.c12
1 files changed, 10 insertions, 2 deletions
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);