aboutsummaryrefslogtreecommitdiff
path: root/sway/config/output.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2019-10-26 13:59:19 +0200
committerDrew DeVault <sir@cmpwn.com>2019-10-27 10:51:02 -0400
commit58a40ce07b2e20e6fca70fba4c2775510928d33e (patch)
tree5bb86b3f7bd50e1c1d0ef3984b16e8c66c6a9fe4 /sway/config/output.c
parent43bd8dc437866ce1e6ba8e276af511a9ddebe71d (diff)
Fix apply_output_config return value when enabling output
apply_output_config would call output_enable and always return true, even if the output couldn't be enabled.
Diffstat (limited to 'sway/config/output.c')
-rw-r--r--sway/config/output.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sway/config/output.c b/sway/config/output.c
index 12a875b7..3c36692f 100644
--- a/sway/config/output.c
+++ b/sway/config/output.c
@@ -249,8 +249,7 @@ bool apply_output_config(struct output_config *oc, struct sway_output *output) {
if (!oc || oc->dpms_state != DPMS_OFF) {
wlr_output_enable(wlr_output, true);
}
- output_enable(output, oc);
- return true;
+ return output_enable(output, oc);
}
if (oc && oc->dpms_state == DPMS_ON) {