summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-24 18:53:09 +0100
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-02-27 22:13:15 +0100
commit67bbcceba1433e41b5edfca32532b7d55a39a395 (patch)
tree6be69c67c3fbdc9cb320dd7d34b26564ff486a67 /include
parentImprove how swaybars are spawned (diff)
downloadsway-67bbcceba1433e41b5edfca32532b7d55a39a395.tar.gz
sway-67bbcceba1433e41b5edfca32532b7d55a39a395.tar.zst
sway-67bbcceba1433e41b5edfca32532b7d55a39a395.zip
Free config before exiting sway.
Apart from freeing the sway_config struct, this also terminates the swaybars spawned by sway, since they are linked by PID to the bar config structs.
Diffstat (limited to 'include')
-rw-r--r--include/config.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h
index 8907e019..d77872ee 100644
--- a/include/config.h
+++ b/include/config.h
@@ -193,6 +193,10 @@ bool load_config(const char *file);
193 */ 193 */
194bool read_config(FILE *file, bool is_active); 194bool read_config(FILE *file, bool is_active);
195/** 195/**
196 * Free config struct
197 */
198void free_config(struct sway_config *config);
199/**
196 * Does variable replacement for a string based on the config's currently loaded variables. 200 * Does variable replacement for a string based on the config's currently loaded variables.
197 */ 201 */
198char *do_var_replacement(char *str); 202char *do_var_replacement(char *str);