aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIsaac Freund <mail@isaacfreund.com>2022-06-03 00:15:42 +0200
committerSimon Ser <contact@emersion.fr>2022-06-07 15:30:08 +0000
commit0deef6fe44a939a47a170fa8eae55c9ea08520d9 (patch)
tree6f197dfc964921cafa358e817d77aa4239b9e626 /include
parent5cca72958a37c3474df1975c271d8884cf3ec6d2 (diff)
output: fix leak of empty back buffer lock
This refactors output_ensure_buffer() to not mutate the state passed, making the previous subtle behavior much more explicit. Fixes: d483dd2f ("output: add wlr_output_commit_state") Closes: #3442
Diffstat (limited to 'include')
-rw-r--r--include/types/wlr_output.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h
index 9223407a..5f0cbe33 100644
--- a/include/types/wlr_output.h
+++ b/include/types/wlr_output.h
@@ -13,6 +13,6 @@ struct wlr_drm_format *output_pick_format(struct wlr_output *output,
const struct wlr_drm_format_set *display_formats, uint32_t format);
void output_clear_back_buffer(struct wlr_output *output);
bool output_ensure_buffer(struct wlr_output *output,
- struct wlr_output_state *state);
+ const struct wlr_output_state *state, bool *new_back_buffer);
#endif