aboutsummaryrefslogtreecommitdiff
path: root/backend/x11
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-06 15:03:52 +0200
committerSimon Ser <contact@emersion.fr>2021-04-06 15:03:52 +0200
commite9361e0492d7427fded4e7c2871d43a1abb3ab0c (patch)
tree76d291a7f3afaa63fab1d6ddc8bb9ea3d2988723 /backend/x11
parent6bfbf356181a78a39d04c9c0f4a182b0529394c8 (diff)
backend/x11: reject DMA-BUFs with flags
We cannot scan-out DMA-BUFs with any flag right now.
Diffstat (limited to 'backend/x11')
-rw-r--r--backend/x11/output.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/x11/output.c b/backend/x11/output.c
index 0d045ff4..a08fd101 100644
--- a/backend/x11/output.c
+++ b/backend/x11/output.c
@@ -158,6 +158,10 @@ static struct wlr_x11_buffer *create_x11_buffer(struct wlr_x11_output *output,
return NULL;
}
+ if (attrs.flags != 0) {
+ return NULL;
+ }
+
// xcb closes the FDs after sending them, so we need to dup them here
struct wlr_dmabuf_attributes dup_attrs = {0};
if (!wlr_dmabuf_attributes_copy(&dup_attrs, &attrs)) {