1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-07-01 16:17:46 +02:00

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.
This commit is contained in:
Manuel Argüelles 2013-08-29 21:56:27 -05:00
parent 5fc6ab1c49
commit ec7e458800

View File

@ -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