make tog read input from stdscr; avoids races when resizing
diff --git a/tog/tog.c b/tog/tog.c
index 00b4e68..0e1562e 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -487,7 +487,7 @@ view_input(struct tog_view **new, struct tog_view **dead,
errcode = pthread_mutex_unlock(&tog_mutex);
if (errcode)
return got_error_set_errno(errcode);
- ch = wgetch(view->window);
+ ch = getch();
errcode = pthread_mutex_lock(&tog_mutex);
if (errcode)
return got_error_set_errno(errcode);