mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-22 09:59:48 +01:00
backend/x11: reject DMA-BUFs with flags
We cannot scan-out DMA-BUFs with any flag right now.
This commit is contained in:
parent
6bfbf35618
commit
e9361e0492
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue