This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 16ca9c9ef4902fa86d7955d92eb62df159c75537
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Mon Mar 13 12:27:53 2023 +0100

    startup: Only repaint if animating
    
    Also
    - Insert delay to "show" progress
    - End at 100%
---
 src/config.c | 16 ++++++++++------
 1 file changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/config.c b/src/config.c
index 49c665ad..fde8d3ba 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
- * Copyright (C) 2004-2021 Kim Woelders
+ * Copyright (C) 2004-2023 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -591,13 +591,12 @@ ThemeConfigLoad(void)
       "menustyles.cfg",
    };
    Progressbar        *p = NULL;
-   unsigned int        i;
+   unsigned int        i, delay_ms;
 
    /* Font mappings */
    FontConfigLoad();
 
    for (i = 0; i < E_ARRAY_SIZE(config_files); i++)
-
      {
 	if (!Mode.wm.restart && Conf.startup.animate)
 	  {
@@ -611,15 +610,20 @@ ThemeConfigLoad(void)
 		  if (p)
 		     ProgressbarShow(p);
 	       }
+	     delay_ms =
+		Conf.desks.slidespeed > 0 ? 120000 / Conf.desks.slidespeed : 20;
 	  }
 
 	ConfigFileLoad(config_files[i], Mode.theme.path, ConfigFileRead, 1);
 
 	if (p)
-	   ProgressbarSet(p, (i * 100) / E_ARRAY_SIZE(config_files));
+	  {
+	     ProgressbarSet(p, ((i + 1) * 100) / E_ARRAY_SIZE(config_files));
 
-	/* Hack - We are not running in the event loop here */
-	EobjsRepaint();
+	     /* Hack - We are not running in the event loop here */
+	     EobjsRepaint();
+	     SleepUs(1000 * delay_ms);
+	  }
      }
 
    if (p)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to