[PATCH 2/2] compositor: Use libwayland to find a good default socket name for us

Pekka Paalanen ppaalanen at gmail.com
Wed May 7 06:57:13 PDT 2014


On Wed,  7 May 2014 09:07:27 -0400
"Jasper St. Pierre" <jstpierre at mecheye.net> wrote:

> ---
>  src/compositor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/compositor.c b/src/compositor.c
> index 120818f..85a75bf 100644
> --- a/src/compositor.c
> +++ b/src/compositor.c
> @@ -4306,7 +4306,7 @@ int main(int argc, char *argv[])
>  		wl_client_add_destroy_listener(primary_client,
>  					       &primary_client_destroyed);
>  	} else {
> -		if (wl_display_add_socket(display, socket_name)) {
> +		if (wl_display_add_socket(display, NULL)) {
>  			weston_log("fatal: failed to add socket: %m\n");
>  			ret = EXIT_FAILURE;
>  			goto out;

This would break the weston commandline option -S / --socket, no?
The server should actually be listening on the socket it gets told to.


Thanks,
pq


More information about the wayland-devel mailing list