summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-05-17 09:09:21 -0400
committerKristian Høgsberg <krh@bitplanet.net>2012-05-17 09:09:21 -0400
commit870461997a1087f68be8904cbc1a5788fb20a410 (patch)
treef40781e00e5f8dc6c4a1939c3ac05a82ad99ffe0 /tests
parentb93b6cfa470d9039a3a53f76a9ac0958864af463 (diff)
tests: Rename left-over caps_mask to capability
Diffstat (limited to 'tests')
-rw-r--r--tests/test-client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-client.c b/tests/test-client.c
index b33b34d..c6dfd96 100644
--- a/tests/test-client.c
+++ b/tests/test-client.c
@@ -151,26 +151,26 @@ static const struct wl_keyboard_listener keyboard_listener = {
static void
seat_handle_capabilities(void *data, struct wl_seat *seat,
- enum wl_seat_caps_mask caps)
+ enum wl_seat_capability caps)
{
struct input *input = data;
- if ((caps & WL_SEAT_CAPS_MASK_POINTER) && !input->pointer) {
+ if ((caps & WL_SEAT_CAPABILITY_POINTER) && !input->pointer) {
input->pointer = wl_seat_get_pointer(seat);
wl_pointer_set_user_data(input->pointer, input);
wl_pointer_add_listener(input->pointer, &pointer_listener,
input);
- } else if (!(caps & WL_SEAT_CAPS_MASK_POINTER) && input->pointer) {
+ } else if (!(caps & WL_SEAT_CAPABILITY_POINTER) && input->pointer) {
wl_pointer_destroy(input->pointer);
input->pointer = NULL;
}
- if ((caps & WL_SEAT_CAPS_MASK_KEYBOARD) && !input->keyboard) {
+ if ((caps & WL_SEAT_CAPABILITY_KEYBOARD) && !input->keyboard) {
input->keyboard = wl_seat_get_keyboard(seat);
wl_keyboard_set_user_data(input->keyboard, input);
wl_keyboard_add_listener(input->keyboard, &keyboard_listener,
input);
- } else if (!(caps & WL_SEAT_CAPS_MASK_KEYBOARD) && input->keyboard) {
+ } else if (!(caps & WL_SEAT_CAPABILITY_KEYBOARD) && input->keyboard) {
wl_keyboard_destroy(input->keyboard);
input->keyboard = NULL;
}