mirror of
https://github.com/swaywm/sway.git
synced 2025-11-25 06:59:48 -05:00
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.
This commit is contained in:
parent
43bd8dc437
commit
58a40ce07b
3 changed files with 8 additions and 7 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue