wlr region/surface: explicitely select interface fields
This commit is contained in:
parent
fc1a851415
commit
03b29eb32c
|
@ -26,9 +26,9 @@ static void region_destroy(struct wl_client *client, struct wl_resource *resourc
|
||||||
}
|
}
|
||||||
|
|
||||||
static const struct wl_region_interface region_interface = {
|
static const struct wl_region_interface region_interface = {
|
||||||
region_destroy,
|
.destroy = region_destroy,
|
||||||
region_add,
|
.add = region_add,
|
||||||
region_subtract,
|
.subtract = region_subtract,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void destroy_region(struct wl_resource *resource) {
|
static void destroy_region(struct wl_resource *resource) {
|
||||||
|
|
|
@ -326,16 +326,16 @@ static void surface_damage_buffer(struct wl_client *client,
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct wl_surface_interface surface_interface = {
|
const struct wl_surface_interface surface_interface = {
|
||||||
surface_destroy,
|
.destroy = surface_destroy,
|
||||||
surface_attach,
|
.attach = surface_attach,
|
||||||
surface_damage,
|
.damage = surface_damage,
|
||||||
surface_frame,
|
.frame = surface_frame,
|
||||||
surface_set_opaque_region,
|
.set_opaque_region = surface_set_opaque_region,
|
||||||
surface_set_input_region,
|
.set_input_region = surface_set_input_region,
|
||||||
surface_commit,
|
.commit = surface_commit,
|
||||||
surface_set_buffer_transform,
|
.set_buffer_transform = surface_set_buffer_transform,
|
||||||
surface_set_buffer_scale,
|
.set_buffer_scale = surface_set_buffer_scale,
|
||||||
surface_damage_buffer
|
.damage_buffer = surface_damage_buffer
|
||||||
};
|
};
|
||||||
|
|
||||||
static void destroy_surface(struct wl_resource *resource) {
|
static void destroy_surface(struct wl_resource *resource) {
|
||||||
|
|
Loading…
Reference in New Issue