wlr_compositor: release state on buffer release

wlr_compositor will now wait for the current buffer to be released before
clearing relevant state. For now, this will always happen at the end of
the commit so there should be no functional change here.
This commit is contained in:
Alexander Orzechowski 2024-05-05 12:57:29 -04:00
parent 06cd96b832
commit 42c395f39c
2 changed files with 40 additions and 5 deletions

View file

@ -239,6 +239,7 @@ struct wlr_surface {
// private state
struct wl_listener role_resource_destroy;
struct wl_listener current_buffer_release;
struct {
int32_t scale;
@ -250,6 +251,7 @@ struct wlr_surface {
bool unmap_commit;
bool opaque;
bool consumed;
bool handling_commit;
bool pending_rejected;