birdwl

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 6ca87210d49424b457a319ae037d8a0658346af9
parent 002c7d22043da56a54511b5d234c2e3bd997d119
Author: Leonardo Hernández Hernández <leohdz172@proton.me>
Date:   Sun, 27 Oct 2024 20:26:55 -0600

check if the backend supports explicit sync before creating the object (wlroots!4848)

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4848

Diffstat:
Mdwl.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dwl.c b/dwl.c @@ -2436,7 +2436,8 @@ setup(void) wlr_linux_dmabuf_v1_create_with_renderer(dpy, 5, drw)); } - if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline) + if ((drm_fd = wlr_renderer_get_drm_fd(drw)) >= 0 && drw->features.timeline + && backend->features.timeline) wlr_linux_drm_syncobj_manager_v1_create(dpy, 1, drm_fd); /* Autocreates an allocator for us.