mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-26 22:13:26 +01: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:
parent
5fc6ab1c49
commit
ec7e458800
@ -239,7 +239,7 @@ void draw_active_window(Tox *m)
|
|||||||
|
|
||||||
/* Handle input */
|
/* Handle input */
|
||||||
#ifdef HAVE_WIDECHAR
|
#ifdef HAVE_WIDECHAR
|
||||||
wget_wch(a->window, &ch);
|
wget_wch(stdscr, &ch);
|
||||||
#else
|
#else
|
||||||
ch = getch();
|
ch = getch();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user