aboutsummaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sway/config.c b/sway/config.c
index da4fac84..280900ca 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -18,16 +18,16 @@ void config_defaults(struct sway_config *config) {
18 // Flags 18 // Flags
19 config->focus_follows_mouse = true; 19 config->focus_follows_mouse = true;
20 config->mouse_warping = true; 20 config->mouse_warping = true;
21 config->reloading = false; 21 config->reloading = false;
22} 22}
23 23
24struct sway_config *read_config(FILE *file, bool is_active) { 24struct sway_config *read_config(FILE *file, bool is_active) {
25 struct sway_config *config = malloc(sizeof(struct sway_config)); 25 struct sway_config *config = malloc(sizeof(struct sway_config));
26 config_defaults(config); 26 config_defaults(config);
27 27
28 if (is_active) { 28 if (is_active) {
29 config->reloading = true; 29 config->reloading = true;
30 } 30 }
31 31
32 bool success = true; 32 bool success = true;
33 33
@@ -61,9 +61,9 @@ _continue:
61 exit(1); 61 exit(1);
62 } 62 }
63 63
64 if (is_active) { 64 if (is_active) {
65 config->reloading = true; 65 config->reloading = true;
66 } 66 }
67 67
68 return config; 68 return config;
69} 69}