diff options
author | Simon Ser <contact@emersion.fr> | 2022-09-21 16:16:53 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-09-21 16:18:16 +0200 |
commit | 8e8b9a72173727f125af227aaf671c38f7640db3 (patch) | |
tree | 14d9c0893591c889c5f5c4be8e8768c33a9a8f5f /include | |
parent | 800ea7d52d8198efca683cfc1d3befcc16d2457b (diff) |
output: fix back buffer checks
The back buffer is no longer set at commit time since 0556aa0c5918
("output: rejigger attach/clear for back buffer").
Instead, check whether the buffer belongs to the output swapchain.
This is more robust.
Closes: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3496
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_output.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/types/wlr_output.h b/include/types/wlr_output.h index 5f0cbe33..082df5e3 100644 --- a/include/types/wlr_output.h +++ b/include/types/wlr_output.h @@ -8,6 +8,8 @@ void output_pending_resolution(struct wlr_output *output, const struct wlr_output_state *state, int *width, int *height); void output_state_attach_buffer(struct wlr_output_state *state, struct wlr_buffer *buffer); +bool output_is_direct_scanout(struct wlr_output *output, + struct wlr_buffer *buffer); struct wlr_drm_format *output_pick_format(struct wlr_output *output, const struct wlr_drm_format_set *display_formats, uint32_t format); |