From ee3ea3be13744f766af57e4ae4504b5942655184 Mon Sep 17 00:00:00 2001 From: Federico Angelilli Date: Mon, 9 Sep 2024 00:54:18 +0200 Subject: Refactor and simplify config --- src/config.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/config.h') diff --git a/src/config.h b/src/config.h index 726006e..a7d196f 100644 --- a/src/config.h +++ b/src/config.h @@ -34,11 +34,8 @@ typedef struct { char *monitor; bool override_redirect; color_t background; - - uint32_t height; - uint32_t width; - uint32_t spacing; - char **children; + unsigned int width; + unsigned int height; } config_t; typedef struct { @@ -50,7 +47,7 @@ void config_init(config_t *config); void config_read(config_t *config, FILE *file); -void config_resolve(config_t *config, block_t *block); +block_t *config_resolve(config_t *config); void config_free(config_t *config); -- cgit v1.2.3