[PATCH 4/6] compositor: use generated constant instead of hardcoded value
Bryce Harrington
bryce at osg.samsung.com
Thu May 19 23:57:38 UTC 2016
On Tue, Apr 26, 2016 at 11:34:06PM +0200, David Fort wrote:
> Use SINCE macros instead of the hardcoded version value.
>
> Signed-off-by: David Fort <contact at hardening-consulting.com>
LGTM,
Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>
Pushed:
2d4aa83..8a12069 master -> master
> ---
> src/compositor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/compositor.c b/src/compositor.c
> index 5500197..b88936b 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -4236,7 +4236,7 @@ weston_output_move(struct weston_output *output, int x, int y)
> output->model,
> output->transform);
>
> - if (wl_resource_get_version(resource) >= 2)
> + if (wl_resource_get_version(resource) >= WL_OUTPUT_DONE_SINCE_VERSION)
> wl_output_send_done(resource);
> }
> }
> --
> 1.9.1
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list