summaryrefslogtreecommitdiff
path: root/preload.c
diff options
context:
space:
mode:
Diffstat (limited to 'preload.c')
-rw-r--r--preload.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/preload.c b/preload.c
index 3bd2e24..62664cf 100644
--- a/preload.c
+++ b/preload.c
@@ -4,8 +4,9 @@
#include "preload.h"
#include "wallpapers.h"
+#include "walls_conf.h"
-guint preload_max = 6;
+guint preload_max = 2;
static gboolean preload_thread_exit = FALSE;
static GHashTable *hashtable = NULL;
@@ -33,6 +34,7 @@ static void preload_hash_table_free(gpointer data) {
}
void preload_init() {
+ preload_max = conf_get_int("walls", "max_preload", 2);
preload_hashtable_mutex = g_mutex_new();
preload_thread_mutex = g_mutex_new();