From ec1227607949a556a44d177b66a7b2d50f6cbc4d Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 12 Apr 2012 23:48:09 +0200 Subject: src/calcurse.c: Start all helper threads in one go Makes our initialization code a tad cleaner and seems to reduce flicker when starting calcurse (the notification bar is no longer drawn before other windows are shown). Signed-off-by: Lukas Fleischer --- src/calcurse.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/calcurse.c b/src/calcurse.c index 37c3cac..6c473c3 100644 --- a/src/calcurse.c +++ b/src/calcurse.c @@ -159,8 +159,6 @@ main (int argc, char **argv) io_load_todo (); io_load_app (); wins_reinit (); - if (notify_bar ()) - notify_start_main_thread (); if (conf.system_dialogs) { wins_update (FLAG_ALL); @@ -169,6 +167,10 @@ main (int argc, char **argv) inday = *day_process_storage (0, 0, &inday); wins_slctd_set (CAL); wins_update (FLAG_ALL); + + /* Start miscellaneous threads. */ + if (notify_bar ()) + notify_start_main_thread (); calendar_start_date_thread (); if (conf.periodic_save > 0) io_start_psave_thread (); -- cgit v1.2.3-70-g09d2