diff --git a/src/musikcube/cursespp/App.cpp b/src/musikcube/cursespp/App.cpp index f0fdfee5a..76a21842f 100755 --- a/src/musikcube/cursespp/App.cpp +++ b/src/musikcube/cursespp/App.cpp @@ -278,14 +278,10 @@ void App::InitCurses() { curs_set(0); mousemask(ALL_MOUSE_EVENTS, nullptr); mouseinterval(0); + timeout(IDLE_TIMEOUT_MS); #ifndef WIN32 set_escdelay(20); - timeout(IDLE_TIMEOUT_MS); -#endif - -#ifdef WIN32 - nodelay(stdscr, true); #endif #ifdef WIN32 @@ -531,9 +527,6 @@ void App::Run(ILayoutPtr layout) { WINDOW *c = this->state.focused->GetContent(); keypad(c, TRUE); wtimeout(c, IDLE_TIMEOUT_MS); - #ifdef WIN32 - nodelay(c, true); - #endif ch = wgetch(c); } else { diff --git a/src/musikcube/cursespp/cursespp/Window.h b/src/musikcube/cursespp/cursespp/Window.h index 465cf830f..0e3cc8b05 100644 --- a/src/musikcube/cursespp/cursespp/Window.h +++ b/src/musikcube/cursespp/cursespp/Window.h @@ -40,7 +40,7 @@ #include #ifdef WIN32 -#define IDLE_TIMEOUT_MS 0 +#define IDLE_TIMEOUT_MS 5 #define REDRAW_DEBOUNCE_MS 100 #else #define IDLE_TIMEOUT_MS 75