[PATCH weston] weston-info: look for the right wp_presentation

Bryce Harrington bryce at osg.samsung.com
Thu Apr 21 21:30:05 UTC 2016


On Tue, Apr 19, 2016 at 04:20:32PM +0300, Pekka Paalanen wrote:
> From: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> 
> Patch b00c79b587a4903df576008a64a49f851fed234c forgot to update the
> global interface name to look for. Fix it.
> 
> This makes weston-info report the presentation clock again.
> 
> Signed-off-by: Pekka Paalanen <pekka.paalanen at collabora.co.uk>
> ---
>  clients/weston-info.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/clients/weston-info.c b/clients/weston-info.c
> index aa81816..c4f7660 100644
> --- a/clients/weston-info.c
> +++ b/clients/weston-info.c
> @@ -662,7 +662,7 @@ global_handler(void *data, struct wl_registry *registry, uint32_t id,
>  		add_shm_info(info, id, version);
>  	else if (!strcmp(interface, "wl_output"))
>  		add_output_info(info, id, version);
> -	else if (!strcmp(interface, "presentation"))
> +	else if (!strcmp(interface, wp_presentation_interface.name))
>  		add_presentation_info(info, id, version);
>  	else
>  		add_global_info(info, id, interface, version);

Yep

clients/weston-info.c:		      else if (!strcmp(interface, "presentation"))
clients/presentation-shm.c:	      } else if (strcmp(interface, wp_presentation_interface.name) == 0) {
tests/presentation-test.c:	      	if (strcmp(g->interface, wp_presentation_interface.name))

Reviewed-by: Bryce Harrington <bryce at osg.samsung.com>

> -- 
> 2.7.3
> 
> _______________________________________________
> 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