From d835fa813f82501eb668708af33afc42010707cf Mon Sep 17 00:00:00 2001 From: llyyr Date: Tue, 29 Oct 2024 09:56:42 +0530 Subject: [PATCH] backend/multi: only consider backends with dmabuf cap for timeline timeline feature will never be applicable to backends without it, so don't check it. Before this commit, it would cause timeline to be set to false if libinput ended up being the last item in the list (which is the case currently). --- backend/multi/backend.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/multi/backend.c b/backend/multi/backend.c index 239524f16..bcb8a4f0c 100644 --- a/backend/multi/backend.c +++ b/backend/multi/backend.c @@ -232,8 +232,11 @@ static void multi_backend_refresh_features(struct wlr_multi_backend *multi) { struct subbackend_state *sub = NULL; wl_list_for_each(sub, &multi->backends, link) { - multi->backend.features.timeline = multi->backend.features.timeline && - sub->backend->features.timeline; + // timeline is only applicable to backends that support DMABUFs + if (backend_get_buffer_caps(sub->backend) & WLR_BUFFER_CAP_DMABUF) { + multi->backend.features.timeline = multi->backend.features.timeline && + sub->backend->features.timeline; + } } }