output: call wlr_output_update_enabled() after commit

Backends no longer need to manually call wlr_output_update_enabled()
in their commit hook: wlr_output will take care of that.
This commit is contained in:
Simon Ser 2022-11-15 16:50:05 +01:00
parent fdb24d19ca
commit ef5e2cc5e3
2 changed files with 4 additions and 3 deletions

View file

@ -789,6 +789,10 @@ bool wlr_output_commit_state(struct wlr_output *output,
output->commit_seq++;
if (pending.committed & WLR_OUTPUT_STATE_ENABLED) {
wlr_output_update_enabled(output, pending.enabled);
}
bool scale_updated = pending.committed & WLR_OUTPUT_STATE_SCALE;
if (scale_updated) {
output->scale = pending.scale;