mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-21 22:52:20 +00:00
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).
This commit is contained in:
parent
ebab992b44
commit
d835fa813f
@ -232,8 +232,11 @@ static void multi_backend_refresh_features(struct wlr_multi_backend *multi) {
|
|||||||
|
|
||||||
struct subbackend_state *sub = NULL;
|
struct subbackend_state *sub = NULL;
|
||||||
wl_list_for_each(sub, &multi->backends, link) {
|
wl_list_for_each(sub, &multi->backends, link) {
|
||||||
multi->backend.features.timeline = multi->backend.features.timeline &&
|
// timeline is only applicable to backends that support DMABUFs
|
||||||
sub->backend->features.timeline;
|
if (backend_get_buffer_caps(sub->backend) & WLR_BUFFER_CAP_DMABUF) {
|
||||||
|
multi->backend.features.timeline = multi->backend.features.timeline &&
|
||||||
|
sub->backend->features.timeline;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user