diff --git a/lib/tty/key.c b/lib/tty/key.c index 10a263c..5e0b268 100644 --- a/lib/tty/key.c +++ b/lib/tty/key.c @@ -2118,7 +2118,8 @@ tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block) } #ifndef HAVE_SLANG - flag = is_wintouched (stdscr); + { + int flag = is_wintouched (stdscr); untouchwin (stdscr); #endif /* !HAVE_SLANG */ c = block ? getch_with_delay () : get_key_code (1); @@ -2126,6 +2127,7 @@ tty_get_event (struct Gpm_Event *event, gboolean redo_event, gboolean block) #ifndef HAVE_SLANG if (flag > 0) tty_touch_screen (); + } #endif /* !HAVE_SLANG */ if (mouse_enabled && (c == MCKEY_MOUSE