linux_drm_syncobj_v1: fix handling of empty first commit

As reported in
https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/4979#note_3385626,
bfd6e619fc did not correctly handle clients
that don't immediately follow their call to
`wp_linux_drm_syncobj_manager_v1.get_surface` with a commit attaching
a buffer

Fixes: bfd6e619fc
This commit is contained in:
Félix Poisot 2026-03-20 12:35:21 +00:00
parent 4ca40004fd
commit fd870f6d27
2 changed files with 11 additions and 3 deletions

View file

@ -20,6 +20,7 @@ struct wlr_linux_drm_syncobj_surface_v1_state {
uint64_t acquire_point;
struct {
bool committed;
struct wlr_drm_syncobj_timeline *release_timeline;
uint64_t release_point;
struct wlr_drm_syncobj_merger *release_merger;