aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-02-11 14:17:33 +0100
committerFurkan Sahin <furkan-dev@proton.me>2020-02-11 14:17:33 +0100
commit48785d051595799346292a666f01f40a29041a53 (patch)
tree4da13f1062a73c8b6db9c31f795fc31df3379fe3 /include
parent4654b92dc7245c56ac5fa206b9e9c1bd5de32f61 (diff)
Stop calling apply_output_config from output_enable
The only output_enable caller is now apply_output_config. Stop calling apply_output_config from output_enable to simplify the code and avoid the back-and-forth between these two functions. output_enable is now the symmetric of output_disable: it just marks the output as enabled and performs bookkeeping (e.g. creating teh default workspace). It is called from apply_output_config after the output commit, so that it can read the current output state and act accordingly. This change also allows us to avoid an extraneous wlr_output_commit. References: https://github.com/swaywm/sway/issues/4921
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 b1c74258..53e77420 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);
-bool output_enable(struct sway_output *output, struct output_config *oc);
+void output_enable(struct sway_output *output);
void output_disable(struct sway_output *output);