[PATCH weston 1/4] Use the named SINCE_VERSION defines for version checks
Jasper St. Pierre
jstpierre at mecheye.net
Thu Aug 7 13:43:11 PDT 2014
To make our code more clear.
---
src/compositor.c | 4 ++--
src/input.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/compositor.c b/src/compositor.c
index 55c959e..4d6a02a 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3145,7 +3145,7 @@ bind_output(struct wl_client *client,
output->subpixel,
output->make, output->model,
output->transform);
- if (version >= 2)
+ if (version >= WL_OUTPUT_SCALE_SINCE_VERSION)
wl_output_send_scale(resource,
output->current_scale);
@@ -3157,7 +3157,7 @@ bind_output(struct wl_client *client,
mode->refresh);
}
- if (version >= 2)
+ if (version >= WL_OUTPUT_DONE_SINCE_VERSION)
wl_output_send_done(resource);
}
diff --git a/src/input.c b/src/input.c
index aaa2223..b6cd7df 100644
--- a/src/input.c
+++ b/src/input.c
@@ -1829,7 +1829,7 @@ bind_seat(struct wl_client *client, void *data, uint32_t version, uint32_t id)
caps |= WL_SEAT_CAPABILITY_TOUCH;
wl_seat_send_capabilities(resource, caps);
- if (version >= 2)
+ if (version >= WL_SEAT_NAME_SINCE_VERSION)
wl_seat_send_name(resource, seat->seat_name);
}
--
2.0.4
More information about the wayland-devel
mailing list