aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/config.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2018-12-12 12:13:03 -0500
committerLibravatar emersion <contact@emersion.fr>2018-12-13 18:37:25 +0100
commit1897edabbaf8755d1b124ab2e00c8f7d43dca57a (patch)
treece82b8c5607b884d7ad55bbf0bacffa52d27d6e5 /include/sway/config.h
parentFix criteria execution in view_map (diff)
downloadsway-1897edabbaf8755d1b124ab2e00c8f7d43dca57a.tar.gz
sway-1897edabbaf8755d1b124ab2e00c8f7d43dca57a.tar.zst
sway-1897edabbaf8755d1b124ab2e00c8f7d43dca57a.zip
Rework default output configs
Default output configs were generated on reload to reset an output to its default settings. The idea was that anything that was removed from the config or changed at runtime and not in the config should be reset on reload. Originally, they were created using the output name. Recently, they were changed to use the output identifier. It turns out that there are issues of shadowing with that solution as well. This should fix those issues. Instead of generating the default output configs on reload and storing them in the output config list to merge on top of, they are now only generated when retrieving the output config for an output during a reload. This means that the default output configs are never stored anywhere and just used as a base to merge unaltered user configs on top of during a reload. Starting with a blank output config, merges get applied in the following order: 1. Default output config (only during a reload) 2. Wildcard config (only if neither output name or output identifier exist) 3. Output name config 4. Output identifier config
Diffstat (limited to 'include/sway/config.h')
-rw-r--r--include/sway/config.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sway/config.h b/include/sway/config.h
index 58b7010e..6afb471a 100644
--- a/include/sway/config.h
+++ b/include/sway/config.h
@@ -553,8 +553,6 @@ void apply_output_config_to_outputs(struct output_config *oc);
553 553
554void free_output_config(struct output_config *oc); 554void free_output_config(struct output_config *oc);
555 555
556void create_default_output_configs(void);
557
558int workspace_output_cmp_workspace(const void *a, const void *b); 556int workspace_output_cmp_workspace(const void *a, const void *b);
559 557
560int sway_binding_cmp(const void *a, const void *b); 558int sway_binding_cmp(const void *a, const void *b);