diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-29 17:42:57 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-06-29 17:42:57 +0200 |
commit | 10a821a87ddabfdef50f8c5a562c3aea44215019 (patch) | |
tree | fff85671dcbf8c90b1a013bcbc603015be89418d | |
parent | e26c3a02dfa2e071f8a70ee192cd11f2434c6b64 (diff) |
output: fix missing buffer when using direct scanout
When using direct scanout back_buffer is NULL. We'd emit a commit
event with WLR_OUTPUT_STATE_BUFFER set but with a NULL buffer field,
which is non-sensical.
-rw-r--r-- | types/output/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/types/output/output.c b/types/output/output.c index ae18ea8d..b45576fa 100644 --- a/types/output/output.c +++ b/types/output/output.c @@ -835,7 +835,7 @@ bool wlr_output_commit_state(struct wlr_output *output, .output = output, .committed = pending.committed, .when = &now, - .buffer = back_buffer, + .buffer = (pending.committed & WLR_OUTPUT_STATE_BUFFER) ? pending.buffer : NULL, }; wlr_signal_emit_safe(&output->events.commit, &event); |