Re: [writing a compositor] wl_display_add_socket_auto fails

2018-05-10 Thread Sung-Jin Park
As I know, if it failed to lock lock file in wl_socket_lock(), it returns a negative value and wl_display_add_socket_auto() will continue to try to add socket with increased display number. In your case, it will try to create socket with wayland-1. Please check your compositor running with wayland

[writing a compositor] wl_display_add_socket_auto fails

2018-05-10 Thread adlo
I am attempting to write a test compositor using libweston. I want to run it in a window on GNOME Shell, so I am using the Wayland backend. When I call wl_display_add_socket_auto, it fails with the error message: unable to lock lockfile /run/user/1000/wayland-0.lock, maybe another compositor is ru