diff options
Diffstat (limited to 'src/calcurse.c')
-rw-r--r-- | src/calcurse.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/calcurse.c b/src/calcurse.c index c55db55..85a7941 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -565,6 +565,11 @@ int main(int argc, char **argv) io_load_todo(); io_load_app(); wins_reinit(); + /* + * Refresh the hidden key handler window here to prevent wgetch() from + * implicitly calling wrefresh() later (causing ncurses race conditions). + */ + wins_wrefresh(win[KEY].p); if (conf.system_dialogs) { wins_update(FLAG_ALL); io_startup_screen(no_data_file); @@ -589,7 +594,7 @@ int main(int argc, char **argv) wins_reset(); } - key = keys_getch(win[STA].p, &count, ®); + key = keys_getch(win[KEY].p, &count, ®); switch (key) { case KEY_GENERIC_REDRAW: resize = 1; |