aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_region.c6
-rw-r--r--types/wlr_surface.c20
2 files changed, 13 insertions, 13 deletions
diff --git a/types/wlr_region.c b/types/wlr_region.c
index dead3784..fdf23ad2 100644
--- a/types/wlr_region.c
+++ b/types/wlr_region.c
@@ -26,9 +26,9 @@ static void region_destroy(struct wl_client *client, struct wl_resource *resourc
}
static const struct wl_region_interface region_interface = {
- region_destroy,
- region_add,
- region_subtract,
+ .destroy = region_destroy,
+ .add = region_add,
+ .subtract = region_subtract,
};
static void destroy_region(struct wl_resource *resource) {
diff --git a/types/wlr_surface.c b/types/wlr_surface.c
index 3eae1131..be6afcf1 100644
--- a/types/wlr_surface.c
+++ b/types/wlr_surface.c
@@ -326,16 +326,16 @@ static void surface_damage_buffer(struct wl_client *client,
}
const struct wl_surface_interface surface_interface = {
- surface_destroy,
- surface_attach,
- surface_damage,
- surface_frame,
- surface_set_opaque_region,
- surface_set_input_region,
- surface_commit,
- surface_set_buffer_transform,
- surface_set_buffer_scale,
- surface_damage_buffer
+ .destroy = surface_destroy,
+ .attach = surface_attach,
+ .damage = surface_damage,
+ .frame = surface_frame,
+ .set_opaque_region = surface_set_opaque_region,
+ .set_input_region = surface_set_input_region,
+ .commit = surface_commit,
+ .set_buffer_transform = surface_set_buffer_transform,
+ .set_buffer_scale = surface_set_buffer_scale,
+ .damage_buffer = surface_damage_buffer
};
static void destroy_surface(struct wl_resource *resource) {