aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-02-16 01:47:59 -0500
committerFurkan Sahin <furkan-dev@proton.me>2020-02-16 01:47:59 -0500
commitf2019882d56a1aa411d38afe3db41448a4737833 (patch)
tree8e13a78ca12ba442b6b8963ef67840088643d3d0 /include
parent7ae98cfece0822cd93f85f8b99ee0d3f66d9bce1 (diff)
output: fix updating output manager config
The output manager config is created when the output is created. It is updated when the mode, transform, scale, or layout for the output changes, as well as, when the output is destroyed. Since the output->enabled property was not being set before calling apply_output_config, the output event handlers were early returning and never updating the output manager config when the output state was committed. This fixes the issue by setting output->enabled in apply_output_config below the output disabling section. There are also a few other minor changes that are required to function. Additionally, this renames output_enable to output_configure to better describe the recent changes.
Diffstat (limited to 'include')
-rw-r--r--include/sway/output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 53e77420..01c32e0b 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -101,7 +101,7 @@ struct sway_output *all_output_by_name_or_id(const char *name_or_id);
void output_sort_workspaces(struct sway_output *output);
-void output_enable(struct sway_output *output);
+void output_configure(struct sway_output *output);
void output_disable(struct sway_output *output);