Merge branch 'buffer-release' into 'master'

compositor: implement wl_surface.get_release

See merge request wlroots/wlroots!3674
This commit is contained in:
Simon Ser 2023-04-04 08:12:36 +00:00
commit 7a72460a0d
4 changed files with 134 additions and 4 deletions

View file

@ -29,6 +29,7 @@ enum wlr_surface_state_field {
WLR_SURFACE_STATE_FRAME_CALLBACK_LIST = 1 << 7,
WLR_SURFACE_STATE_VIEWPORT = 1 << 8,
WLR_SURFACE_STATE_OFFSET = 1 << 9,
WLR_SURFACE_STATE_RELEASE_CALLBACK_LIST = 1 << 10,
};
struct wlr_surface_state {
@ -44,6 +45,7 @@ struct wlr_surface_state {
enum wl_output_transform transform;
int32_t scale;
struct wl_list frame_callback_list; // wl_resource
struct wl_list release_callback_list; // wl_resource
int width, height; // in surface-local coordinates
int buffer_width, buffer_height;