[PATCH 3/3] shell: Add wl_output name event

Jason Ekstrand jason at jlekstrand.net
Tue Mar 18 17:53:20 PDT 2014


On Mar 16, 2014 10:20 PM, "Quanxian Wang" <quanxian.wang at intel.com> wrote:
>
> Signed-off-by: Quanxian Wang <quanxian.wang at intel.com>
> ---
>  clients/desktop-shell.c | 10 +++++++++-
>  clients/window.c        | 10 +++++++++-
>  2 files changed, 18 insertions(+), 2 deletions(-)
>
> diff --git a/clients/desktop-shell.c b/clients/desktop-shell.c
> index a0c6b6d..cefe936 100644
> --- a/clients/desktop-shell.c
> +++ b/clients/desktop-shell.c
> @@ -1172,6 +1172,13 @@ output_handle_mode(void *data,
>  }
>
>  static void
> +output_handle_name(void *data,
> +                  struct wl_output *wl_output,
> +                  const char *name)
> +{
> +}
> +
> +static void
>  output_handle_done(void *data,
>                     struct wl_output *wl_output)
>  {
> @@ -1192,7 +1199,8 @@ static const struct wl_output_listener
output_listener = {
>         output_handle_geometry,
>         output_handle_mode,
>         output_handle_done,
> -       output_handle_scale
> +       output_handle_scale,
> +       output_handle_name
>  };

If you we're going to add the listeners, we should actually bind to version
3.

>
>  static void
> diff --git a/clients/window.c b/clients/window.c
> index 3136a7d..4946b7a 100644
> --- a/clients/window.c
> +++ b/clients/window.c
> @@ -4714,11 +4714,19 @@ display_handle_mode(void *data,
>         }
>  }
>
> +static void
> +display_handle_name(void *data,
> +                   struct wl_output *wl_output,
> +                   const char *name)
> +{
> +}
> +
>  static const struct wl_output_listener output_listener = {
>         display_handle_geometry,
>         display_handle_mode,
>         display_handle_done,
> -       display_handle_scale
> +       display_handle_scale,
> +       display_handle_name
>  };

Same here.

--Jason Ekstrand

>
>  static void
> --
> 1.8.1.2
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-devel/attachments/20140318/241d09c2/attachment.html>


More information about the wayland-devel mailing list