From ec7e458800439d2440b158013e7fccc4930bc6be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Arg=C3=BCelles?= Date: Thu, 29 Aug 2013 21:56:27 -0500 Subject: [PATCH] Fix blocking while waiting for key The timeout() for input is set on main window (stdscr), since it seems that for some ncurses implementations get_wch and getch are the same (non widechar) wget_wch is used instead. The window passed must the the main one, the others doesn't have the timeout settings. Another option is to set wtimeout() on every window. --- src/windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.c b/src/windows.c index ffa71f4..1795c4b 100644 --- a/src/windows.c +++ b/src/windows.c @@ -239,7 +239,7 @@ void draw_active_window(Tox *m) /* Handle input */ #ifdef HAVE_WIDECHAR - wget_wch(a->window, &ch); + wget_wch(stdscr, &ch); #else ch = getch(); #endif