aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-09-26 17:38:41 +0200
committeremersion <contact@emersion.fr>2018-09-26 17:38:41 +0200
commitc89cd4945be9a719ef8d0ff3fbd1736b573f92bc (patch)
treef4b9e6255766cb13948f9d9eb6c90058c80bf502
parente3736d4acc38e3c174cffe54d1e123bdb8d4d99b (diff)
pointer-constraints: rename wl_{global,resources}
-rw-r--r--include/wlr/types/wlr_pointer_constraints_v1.h4
-rw-r--r--types/wlr_pointer_constraints_v1.c10
2 files changed, 7 insertions, 7 deletions
diff --git a/include/wlr/types/wlr_pointer_constraints_v1.h b/include/wlr/types/wlr_pointer_constraints_v1.h
index b8015a57..8a73efcc 100644
--- a/include/wlr/types/wlr_pointer_constraints_v1.h
+++ b/include/wlr/types/wlr_pointer_constraints_v1.h
@@ -47,8 +47,8 @@ struct wlr_pointer_constraint_v1 {
};
struct wlr_pointer_constraints_v1 {
- struct wl_list wl_resources; // wl_resource_get_link
- struct wl_global *wl_global;
+ struct wl_list resources; // wl_resource_get_link
+ struct wl_global *global;
struct {
/**
diff --git a/types/wlr_pointer_constraints_v1.c b/types/wlr_pointer_constraints_v1.c
index 2d2750b5..dbcbe3ee 100644
--- a/types/wlr_pointer_constraints_v1.c
+++ b/types/wlr_pointer_constraints_v1.c
@@ -283,7 +283,7 @@ static void pointer_constraints_bind(struct wl_client *client, void *data,
return;
}
- wl_list_insert(&pointer_constraints->wl_resources, wl_resource_get_link(resource));
+ wl_list_insert(&pointer_constraints->resources, wl_resource_get_link(resource));
wl_resource_set_implementation(resource, &pointer_constraints_impl,
pointer_constraints, pointer_constraints_destroy);
}
@@ -304,9 +304,9 @@ struct wlr_pointer_constraints_v1 *wlr_pointer_constraints_v1_create(
free(pointer_constraints);
return NULL;
}
- pointer_constraints->wl_global = wl_global;
+ pointer_constraints->global = wl_global;
- wl_list_init(&pointer_constraints->wl_resources);
+ wl_list_init(&pointer_constraints->resources);
wl_list_init(&pointer_constraints->constraints);
wl_signal_init(&pointer_constraints->events.constraint_create);
wl_signal_init(&pointer_constraints->events.constraint_destroy);
@@ -317,7 +317,7 @@ struct wlr_pointer_constraints_v1 *wlr_pointer_constraints_v1_create(
void wlr_pointer_constraints_v1_destroy(
struct wlr_pointer_constraints_v1 *pointer_constraints) {
struct wl_resource *resource, *_tmp_res;
- wl_resource_for_each_safe(resource, _tmp_res, &pointer_constraints->wl_resources) {
+ wl_resource_for_each_safe(resource, _tmp_res, &pointer_constraints->resources) {
wl_resource_destroy(resource);
}
@@ -326,7 +326,7 @@ void wlr_pointer_constraints_v1_destroy(
wl_resource_destroy(constraint->resource);
}
- wl_global_destroy(pointer_constraints->wl_global);
+ wl_global_destroy(pointer_constraints->global);
free(pointer_constraints);
}