summaryrefslogtreecommitdiffstats
path: root/sway/config.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2015-08-22 11:18:55 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2015-08-22 11:18:55 -0400
commitb7f4607544d51811e986b98c8c3eda7ed7c68b1a (patch)
tree0e2cf9f02e1d2cde3bf7d0b7424ff5ac3ee6c1e3 /sway/config.c
parentMerge pull request #118 from Luminarys/master (diff)
downloadsway-b7f4607544d51811e986b98c8c3eda7ed7c68b1a.tar.gz
sway-b7f4607544d51811e986b98c8c3eda7ed7c68b1a.tar.zst
sway-b7f4607544d51811e986b98c8c3eda7ed7c68b1a.zip
Implement output configuration through config
Do not use `output res WIDTHxHEIGHT` yet, wlc has issues with it (cc @Cloudef)
Diffstat (limited to 'sway/config.c')
-rw-r--r--sway/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c
index 1ebd95ff..fcd60de7 100644
--- a/sway/config.c
+++ b/sway/config.c
@@ -22,6 +22,7 @@ void config_defaults(struct sway_config *config) {
22 config->modes = create_list(); 22 config->modes = create_list();
23 config->cmd_queue = create_list(); 23 config->cmd_queue = create_list();
24 config->workspace_outputs = create_list(); 24 config->workspace_outputs = create_list();
25 config->output_configs = create_list();
25 config->current_mode = malloc(sizeof(struct sway_mode)); 26 config->current_mode = malloc(sizeof(struct sway_mode));
26 config->current_mode->name = NULL; 27 config->current_mode->name = NULL;
27 config->current_mode->bindings = create_list(); 28 config->current_mode->bindings = create_list();
@@ -60,6 +61,7 @@ void free_config(struct sway_config *config) {
60 free(sym->value); 61 free(sym->value);
61 } 62 }
62 free_flat_list(config->symbols); 63 free_flat_list(config->symbols);
64 free_flat_list(config->output_configs);
63} 65}
64 66
65static const char *search_paths[] = { 67static const char *search_paths[] = {